Add measurement data for an individual or event to a tibble
use_measurements.Rd
This function is a work in progress, and should be used with caution.
Arguments
- .df
a
data.frame
ortibble
that the column should be appended to.- cols
vector of column names to be included as 'measurements'. Unquoted.
- unit
vector of strings giving units for each variable
- type
vector of strings giving a description for each variable
- .keep
Control which columns from .data are retained in the output. Note that unlike
dplyr::mutate()
, which defaults to"all"
this defaults to"unused"
; i.e. only keeps Darwin Core fields, and not those fields used to generate them.