Transforms a wide pData
data.frame into a melted EAV table for use in
a FacileDataSet
. This function will also produce the list-of-list encodings
that are generated from eav_metadata_create()
to do its thing as an
attribute of the returned object.
as.EAVtable( x, ignore = c("dataset", "sample_id"), covariate_def = list(), na.rm = TRUE )
x | a wide |
---|---|
covariate_def | passed to |
a melted EAV table from x
If you want to provide custom definitions for the covariates in the EAVtable
that are different than the ones generated in eav_metadata_create()
, then
provie that definition list in the covariate_def
parameter.