a character string, the annotation containing any descriptive text.
hex
a logical value. If
TRUE, numeric vectors are stored in hexadecimal.
as32bit
a logical value. If
TRUE, numeric vectors are stored in as 32 bits. If
FALSE, values are stored as 64 bits. If
NULL (the default), values are stored according to the current machine. This argument is only relevant when
hex=T.
bigEndian
a logical value. If
TRUE, numeric vectors are stored in big endian format (the native byte order of Solaris). If
FALSE, values are stored in little endian (the native byte format of Windows/Linux). If
NULL (the default), values are stored according to the current machine. This argument is only relevant when
hex=T.
delimiter
a character string. If non-
NULL, vectors will be compressed as character delimited lists rather than as tag delimited lists
precision
an integer that defines the number of decimal places output by default XSL transformations.
VALUE:
A character string version of the representative XML.
# Create the XML string representation of a list object
x <- list(fuel.frame, hist, c(1:50))
annotation <- "This is an example of createXMLString usage"
precision <- 5
xml <- createXMLString(x, annotation, precision=precision)
# Example showing more compressed output
x <- 1:10
annotation <- "An example of createXMLString usage with a more compressed output"
delimiter <- ","
xml <- createXMLString(x, annotation, delimiter=delimiter)
# Example using hexadeximal output for numeric values
x <- 1:32
annotation <- "An example of createXMLString using hex output for numeric arrays"
xml <- createXMLString(x, annotation, hex=T)