Skip to content

Commit bc05eaa

Browse files
committed
Add a few more operators
1 parent bda5a64 commit bc05eaa

File tree

2 files changed

+35
-14
lines changed

2 files changed

+35
-14
lines changed

README.Rmd

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ knitr::opts_chunk$set(
1010
)
1111
```
1212

13-
[![Travis-CI Build Status](https://travis-ci.org/coatless/rops.svg?branch=master)](https://travis-ci.org/coatless/rops)[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/rop)](https://cran.r-project.org/package=rops)
13+
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
14+
[![Travis-CI Build Status](https://travis-ci.org/coatless/rops.svg?branch=master)](https://travis-ci.org/coatless/rops)
15+
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/rop)](https://cran.r-project.org/package=rops)
16+
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/rops)](http://www.r-pkg.org/pkg/rops)
17+
[![Coverage Status](https://img.shields.io/codecov/c/github/coatless/rops/master.svg)](https://codecov.io/github/coatless/rops?branch=master)
1418

1519
# R Ops (`rops`)
1620

@@ -24,9 +28,9 @@ Presently, the package has support for the following operators:
2428

2529
- [Null coalescing operator](https://en.wikipedia.org/wiki/Null_coalescing_operator): `%??%`
2630
- Operator to allow checking and substitution if a value is null without `if`/`else` structure
27-
28-
- [Missing value (`NA`) coalescing operator](): `ifna(x,y)`
31+
- Missing value (`NA`) coalescing operator: `ifna(x, y)`
2932
- Substitute value when NA is detected.
30-
3133
- [Is Whole Number](https://en.wikipedia.org/wiki/Integer): `is_whole(x)`
3234
- Vectorized boolean operator to assess whether value is an integer.
35+
- Safe Sequence Generation: `from %:% to`, `safe_seq(from, to, by)`
36+
- Not In Set: `%notin%`

README.md

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
11

2-
[![Travis-CI Build Status](https://travis-ci.org/coatless/rops.svg?branch=master)](https://travis-ci.org/coatless/rops)[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/rop)](https://cran.r-project.org/package=rops)
2+
[![Project Status: Active - The project has reached a stable, usable
3+
state and is being actively
4+
developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
5+
[![Travis-CI Build
6+
Status](https://travis-ci.org/coatless/rops.svg?branch=master)](https://travis-ci.org/coatless/rops)
7+
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/rop)](https://cran.r-project.org/package=rops)
8+
[![CRAN RStudio mirror
9+
downloads](http://cranlogs.r-pkg.org/badges/rops)](http://www.r-pkg.org/pkg/rops)
10+
[![Coverage
11+
Status](https://img.shields.io/codecov/c/github/coatless/rops/master.svg)](https://codecov.io/github/coatless/rops?branch=master)
312

4-
R Ops (`rops`)
5-
==============
13+
# R Ops (`rops`)
614

7-
The objective behind this package is to provide an extension to base *R* that supplements present operators manipulations.
15+
The objective behind this package is to provide an extension to base *R*
16+
that supplements present operators manipulations.
817

9-
Supported Functionality
10-
=======================
18+
# Supported Functionality
1119

1220
Presently, the package has support for the following operators:
1321

14-
- [Null coalescing operator](https://en.wikipedia.org/wiki/Null_coalescing_operator): `%??%`, `ifnull(x,y)`
15-
- Operator to allow checking and substitution if a value is null without `if`/`else` structure
16-
- [Is Whole Number](https://en.wikipedia.org/wiki/Integer): `is_whole(x)`
17-
- Vectorized boolean operator to assess whether value is an integer.
22+
- [Null coalescing
23+
operator](https://en.wikipedia.org/wiki/Null_coalescing_operator):
24+
`%??%`
25+
- Operator to allow checking and substitution if a value is null
26+
without `if`/`else` structure
27+
- Missing value (`NA`) coalescing operator: `ifna(x, y)`
28+
- Substitute value when NA is detected.
29+
- [Is Whole Number](https://en.wikipedia.org/wiki/Integer):
30+
`is_whole(x)`
31+
- Vectorized boolean operator to assess whether value is an
32+
integer.
33+
- Safe Sequence Generation: `from %:% to`, `safe_seq(from, to, by)`
34+
- Not In Set: `%notin%`

0 commit comments

Comments
 (0)