powered by
Produce a document containing all data.table or data.frame rows
convertToXML(data, name = "doc")
The data to be converted
The toplevel node name
xml An XML object
Code was taken from https://stat.ethz.ch/pipermail/r-help/2010-February/228025.html and amended, basic tests applied
Other helper: CJ.dt(), generatePDF(), pounds_format(), sanitise(), thousands_format(), wordwrap()
CJ.dt()
generatePDF()
pounds_format()
sanitise()
thousands_format()
wordwrap()
# NOT RUN { df<-data.frame(nper=c(12,24),pmt=c(-10,-10),pv=c(110,220)) xml<-convertToXML(df,name='examples') # }
Run the code above in your browser using DataLab