mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
414 B
414 B
Test if vector can be interpreted as roman numerals
Test if vector can be interpreted as roman numerals
Usage
possibly_roman(data)
Arguments
-
data:
character vector
Value
logical
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