eav_encode_covariate: Encodes column(s) from 'pData' into character values

View source: R/entity-attribute-value.R

eav_encode_covariateR Documentation

Encodes column(s) from pData into character values

Description

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.

Usage

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.


facileverse/FacileData documentation built on Feb. 24, 2024, 7:59 a.m.