addXMLDataset {Rggobi} | R Documentation |
This writes a dataset in the XML format used by GGobi
addXMLDataset(data, name, dom, description = NULL)
data |
the dataset to be serialized. |
name |
the name to use for the name attribute for the dataset |
dom |
the output object to which to write the XML. This is
usually an object of class XMLOutputStream . |
description |
an optional string or XML node giving a human-readable description of the dataset. |
See writeDataXML
.
Duncan Temple Lang
data(mtcars) addXMLDataset() dd <- XMLOutputBuffer("ggobidata", close = FALSE) dd <- addXMLDataset(mtcars, "mtcars", dd, "The mtcars data taken from R") cat(dd$value())