write.xts | R Documentation |
Writing an xts object to a file using its date format as rownames instead of the numerical values of the date
write.xts(x, file = "", format = NULL, fmt = NULL, quote = FALSE, ...)
x |
xts object |
file |
either a character string naming a file or a |
format |
format-style argument for formatting the date/time |
quote |
logical. Should characterers be encapsulated in ""? |
... |
Additonal arguments passed to |
FMT |
character string passed on to |
Simon Frey
read.xts
### do not run
data("runoff")
write.xts(runoff, file = tempfile())
write.xts(runoff, format = "%d.%m.%Y %H:%M")
write.xts(runoff, fmt = "%5.1f")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.