roman {rebus.numbers} | R Documentation |
Match roman numerals.
ROMAN roman(lo, hi)
lo |
A non-negative integer. Minimum number of repeats, when grouped. |
hi |
positive integer. Maximum number of repeats, when grouped. |
An object of class regex
(inherits from character
) of length 1.
# Constant form and character class ROMAN roman() x <- c("MMMDCCCXLVIII", "MMMCMDCCCXLVIIV") rx <- rebus.base::exactly(roman()) grepl(rx, x)