This function is not exported, and should only be called from within the as.EAVtable() function because we rely on validity checks that are happening there.

eav_encode_covariate(dat, covariate_def, aname = "variable")

Arguments

covariate_def

the single-list-definition of this covariate

pdata

the pData data.frame

vname

the name of the attribute column in the eav table

Value

a four-column data.frame (dataset,sample_id,variable,value) with the encoded covariate into a single value column.