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

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

eav_encodeR 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(dat, covariate_def, varname)

Arguments

dat

the vector to values to encode into an EAV table

covariate_def

the single-list-definition of this covariate

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.