|
1 | 1 |
|
2 | | -[](http://www.repostatus.org/#active) [](https://travis-ci.org/coatless/rops) [](https://cran.r-project.org/package=rops) [](http://www.r-pkg.org/pkg/rops) [](https://codecov.io/github/coatless/rops?branch=master) |
| 2 | +<!-- badges: start --> |
3 | 3 |
|
4 | | -R Ops (`rops`) |
5 | | -============== |
| 4 | +[](http://www.repostatus.org/#active) |
| 7 | +[](https://github.com/coatless-rpkg/rops/actions/workflows/R-CMD-check.yaml) |
| 8 | +<!-- badges: end --> |
6 | 9 |
|
7 | | -The objective behind this package is to provide an extension to base *R* that supplements present operators manipulations. |
| 10 | +# R Ops (`rops`) |
8 | 11 |
|
9 | | - |
| 12 | +The objective behind this package is to provide an extension to base *R* |
| 13 | +that supplements present operators manipulations. |
10 | 14 |
|
11 | | -Supported Functionality |
12 | | -======================= |
| 15 | +<figure> |
| 16 | +<img src="https://i.imgur.com/IGMeU0J.gif" alt="Demo of Operators" /> |
| 17 | +<figcaption aria-hidden="true">Demo of Operators</figcaption> |
| 18 | +</figure> |
| 19 | + |
| 20 | +# Supported Functionality |
13 | 21 |
|
14 | 22 | Presently, the package has support for the following operators: |
15 | 23 |
|
16 | | -- [Null coalescing operator](https://en.wikipedia.org/wiki/Null_coalescing_operator): `%??%` |
17 | | - - Operator to allow checking and substitution if a value is null without `if`/`else` structure |
18 | | -- Missing value (`NA`) coalescing operator: `ifna(x, y)` |
19 | | - - Substitute value when NA is detected. |
20 | | -- [Is Whole Number](https://en.wikipedia.org/wiki/Integer): `is_whole(x)` |
21 | | - - Vectorized boolean operator to assess whether value is an integer. |
22 | | -- Safe Sequence Generation: `from %:% to`, `safe_seq(from, to, by)` |
23 | | - - Create sequences that agree with the parity of the incrementer. |
24 | | -- Not In Set: `x %notin% table` |
25 | | - - Check to see if an element does not belong to a set. |
| 24 | +- [Null coalescing |
| 25 | + operator](https://en.wikipedia.org/wiki/Null_coalescing_operator): |
| 26 | + `%??%` |
| 27 | + - Operator to allow checking and substitution if a value is null |
| 28 | + without `if`/`else` structure |
| 29 | +- Missing value (`NA`) coalescing operator: `ifna(x, y)` |
| 30 | + - Substitute value when NA is detected. |
| 31 | +- [Is Whole Number](https://en.wikipedia.org/wiki/Integer): |
| 32 | + `is_whole(x)` |
| 33 | + - Vectorized boolean operator to assess whether value is an integer. |
| 34 | +- Safe Sequence Generation: `from %:% to`, `safe_seq(from, to, by)` |
| 35 | + - Create sequences that agree with the parity of the incrementer. |
| 36 | +- Not In Set: `x %notin% table` |
| 37 | + - Check to see if an element does not belong to a set. |
0 commit comments