convertToXML | R Documentation |
Produce a document containing all data.table or data.frame rows
convertToXML(data, name = "doc")
data |
The data to be converted |
name |
The toplevel node name |
Code was taken from https://stat.ethz.ch/pipermail/r-help/2010-February/228025.html and amended, basic tests applied
xml An XML object
Other helper:
CJ.dt()
,
generatePDF()
,
pounds_format()
,
sanitise()
,
thousands_format()
,
wordwrap()
df<-data.frame(nper=c(12,24),pmt=c(-10,-10),pv=c(110,220)) xml<-convertToXML(df,name='examples')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.