Description Usage Arguments Details Value
varnames
and units
are useful attributes that can store
original variable names (varnames
) and units of measurement
(units
) of each column in a data frame or of an atomic type. These
attributes can be extracted or assigned by following functions.
1 2 3 4 5 6 7 |
x |
A data frame or an atomic type. |
names |
A logical value. Applies only in case of data frames. If
|
value |
An atomic type that represents |
Functions check whether the extracted or assigned attributes contain elements
with NULL
, NA
, ""
values or if length of each element is
higher than 1
. In these cases, such elements are substituted with
"-"
.
For varnames
and units
, a character vector.
For varnames<-
and units<-
, the updated object x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.