roman: Roman numerals

Description Usage Arguments Format See Also Examples

View source: R/roman.R

Description

Match roman numerals.

Usage

1
2
3
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

1
2
3
4
5
6
7
# Constant form and character class
ROMAN
roman()

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

richierocks/rebus.numbers documentation built on May 27, 2019, 8:47 a.m.