Learn R Programming

MESS (version 0.5.12)

write.xml: Write a data frame in XML format

Description

Writes the data frame to a file in the XML format.

Usage

write.xml(data, file = NULL, collapse = TRUE)

Value

None

Arguments

data

the data frame object to save

file

the file name to be written to.

collapse

logical. Should the output file be collapsed to make it fill less? (Defaults to TRUE)

Author

Claus Ekstrom, claus@rprimer.dk based on previous work by Duncan Temple Lang.

Details

This function does not require the XML package to be installed to function properly.

Examples

Run this code

if (FALSE) {
data(trees)
write.xml(trees, file="mydata.xml")
}

Run the code above in your browser using DataLab