Description Usage Arguments Value Author(s) See Also Examples
Converts a dataframe to XML.
1 2 3 4 5 6 7 8 | fxml_toXML(
df,
filename = NULL,
element.tag = "record",
indent = "\t",
line.break = "\n",
return.xml = FALSE
)
|
df |
The dataframe to be converted (also works with tibbles and the like) |
filename |
Name of the file to which the XML will be saved; default is |
element.tag |
The tag name of the XML element that will carry the data (see example) |
indent |
Character(s) used for indentation to make the XML prettier; tabulator ( |
line.break |
Character(s) that is written at the end of each line of the XML (line break |
return.xml |
If |
If return.xml == TRUE
the XML code is returned. If filename
is not NULL
then the XML is (additionally) written to the specified file.
Joachim Zuckarelli joachim@zuckarelli.de
1 2 | mydata<-data.frame(list(var1 = c("a", "b", "c"), var2 = c(1,2,3)))
fxml_toXML(mydata, return.xml = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.