Skip to content

Roman numerical output

2 messages · Thomas Steiner, Ben Bolker

#
I have integers and I want R to give them back/output as Roman numerals:
s=c(7,17)
format(s,roman=T)
is obviously wrong. Is there any other way/function to do this?
Thanks,
Thomas
#
Thomas Steiner <finbref.2006 <at> gmail.com> writes:
help.search("roman",agrep=FALSE)
 ?as.roman
 as.roman(c(7,17))