Roman numeral convenince function
code
beginner
r
tips
For all you classics folks out there, R has a convenience function just for you! (As long as your numbers aren’t too big). Credit goes to Georgios Karamanis @geokaramanis for teaching me this.
> as.numeric(as.roman("MCXXIII"))
1] 1123
[> as.roman(1123)
1] MCXXIII
[> as.roman(11234)
1] <NA> [