rebus.numbers v0.0-1
Monthly downloads
Numeric Extensions for the 'rebus' Package
Build regular expressions piece by piece using human readable code.
This package contains number-related functionality, and is primarily intended
to be used by package developers.
Readme
rebus.numbers: Regular Expression Builder, Um, Something (Number-Related Functionality)
This package contains number-related functionality for the rebus package. It is primarily intended for other R package developers. For interactive use, try rebus instead.
Build regular expressions in a human readable way
Regular expressions are a very powerful tool, but the syntax is terse enough to be difficult to read. This makes bugs easy to introduce and hard to find. This package contains functions to make building regular expressions easier.
Installation
To install the stable version, type:
install.packages("rebus.numbers")
To install the development version, you first need the devtools package.
install.packages("devtools")
Then you can install the rebus.numbers package using
library(devtools)
install_github("richierocks/rebus.numbers")
Package contents
number_range
creates a regex that matches a range of integers. For example, number_range(-12, 123)
generates (?:-(?:[1-9]|1[0-2])|(?:0[0-9]{2}|1[0-1][0-9]|12[0-3]))
.
roman
generates a regex to match roman numerals, and ROMAN
provides the constant form. For example roman(2, 3)
matches two or three roman numbers.
Functions in rebus.numbers
Name | Description | |
roman | Roman numerals | |
number_range | Generate a regular expression for a number range. | |
No Results! |
Last month downloads
Details
Date | 2015-12-16 |
License | Unlimited |
LazyLoad | yes |
LazyData | yes |
Acknowledgments | Development of this package was partially funded by
the Proteomics Core at Weill Cornell Medical College in Qatar
|
RoxygenNote | 5.0.1 |
Collate | 'imports.R' 'number_range.R' 'roman.R' |
NeedsCompilation | no |
Packaged | 2015-12-16 09:45:00 UTC; rjc2003 |
Repository | CRAN |
Date/Publication | 2015-12-16 12:00:14 |
depends | base (>= 3.1.0) , R (>= 3.1.0) |
imports | rebus , rebus.base , utils |
suggests | testthat |
Contributors | Richard Cotton |
Include our badge in your README
[](http://www.rdocumentation.org/packages/rebus.numbers)