Description Usage Arguments Details
Facilitates printing object x
also with its units of measurement (or
space efficient metadata) to a file or connection
.
1 2 3 |
x |
A data frame to be written with optional attributes |
file |
A character string naming a file to write or a
|
append |
A logical value, used only if |
quote |
A logical value ( |
sep |
A character used as the field separator of each row. |
na |
A character string representing missing data values in the output. |
col.names |
Either a logical value ( |
... |
Further arguments passed to |
units_fill |
A character string representing missing values of
|
write_data
extends the possibilities of write.table
so the
units of measurement can also be written. However, it uses default arguments
of write.csv
to provide flexibility for the user and to accomodate for
the most common case. The character string "-9999"
is typically used
to represent missing values in eddy covariance data.
Storing varnames
and units
attributes is practical mostly
within data frames and vectors. Attribute varnames
extracted from each
data frame column represents names of respective variables and its main
purpose is to keep variable names of isolated vectors. Attribute units
extracted from each column represents units of measurement (or space
efficient metadata) of respective variables that are written one line above
data region. If the varnames
or units
attribute of given column
is NULL
, of length not equal to 1, or contains missing value or empty
string, it is not considered meaningful. In that case the default column name
produced by as.data.frame
is used instead (considered only if
x
is supplied as vector) and unit of measurement is substituted with
units_fill
string. units_fill
can be an empty string.
Units of measurement are considered to be part of the output header and
therefore col.names
and quote
arguments have the effect on the
way they are written.
Adapted from: openeddy - write_eddy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.