Test if vector can be interpreted as roman numerals
Arguments
- data
character vector
Examples
sample(1:100, 10) |>
as.roman() |>
possibly_roman()
#> [1] TRUE
sample(c(TRUE, FALSE), 10, TRUE) |> possibly_roman()
#> [1] FALSE
rep(NA, 10) |> possibly_roman()
#> [1] FALSE