Learn R Programming

rebus.numbers (version 0.0-1)

roman: Roman numerals

Description

Match roman numerals.

Usage

ROMAN

roman(lo, hi)

Format

An object of class regex (inherits from character) of length 1.

Arguments

lo

A non-negative integer. Minimum number of repeats, when grouped.

hi

positive integer. Maximum number of repeats, when grouped.

See Also

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 DataLab