R/roman.R

Defines functions roman

Documented in roman

roman=function(text,writingsystem="cyrillic"){  #
   if(is.data.frame(text)){stop("Input needs to be a vector")}
   alphabeth=writingsystems[[writingsystem]]
   text.list=strsplit(text,split="")
   do.call(rbind,lapply(text.list,function(x){paste(names(alphabeth[match(x,alphabeth)]),collapse="")}))
}
vdweijer/supply documentation built on June 28, 2021, 7:45 a.m.