roman {rebus.numbers} | R Documentation |
Roman numerals
Description
Match roman numerals.
Usage
ROMAN
roman(lo, hi)
Arguments
lo |
A non-negative integer. Minimum number of repeats, when grouped. |
hi |
positive integer. Maximum number of repeats, when grouped. |
Format
An object of class regex
(inherits from character
) of length 1.
See Also
Examples
# Constant form and character class
ROMAN
roman()
x <- c("MMMDCCCXLVIII", "MMMCMDCCCXLVIIV")
rx <- rebus.base::exactly(roman())
grepl(rx, x)
[Package rebus.numbers version 0.0-1 Index]