rebus.numbers (version 0.0-1)

roman: 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

as.roman

Examples

Run this code
# Constant form and character class
ROMAN
roman()

x <- c("MMMDCCCXLVIII", "MMMCMDCCCXLVIIV")
rx <- rebus.base::exactly(roman())
grepl(rx, x)

Run the code above in your browser using DataCamp Workspace