Description Usage Arguments Examples
Write a unitted object to file.
Write a unitted_data.frame to file.
1 2 3 4 5 6 | write_unitted(x, file = "", ...)
## S4 method for signature 'unitted_data.frame'
write_unitted(x, file = "",
comment.char = "#", sep = "\t", row.names = FALSE, quote = FALSE,
...)
|
x |
The unitted object to be written. Currently only implemented for data.frames. |
file, |
The file to write to, as in |
... |
other arguments passed to |
comment.char |
a single character, or "", with which to prepend the line containing units information |
sep |
the character string used to separate columns, as in
|
row.names |
logical. whether to write row names to the file, as in
|
quote |
logical. whether to place quotes around every data entry, as in
|
1 2 3 4 | write_unitted(u(data.frame(x=1:3, y=9:7), c(x="grapes","seeds")))
write_unitted(u(data.frame(x=1:3, y=9:7), c(x="mg L^-1","ft^3 s^-1")),
sep="\t", file="practice.tsv")
file.remove("practice.tsv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.