expand.covs: convert data to long format so that 'covs' is replicated once...

Description Usage Arguments Value

Description

convert data to long format so that covs is replicated once for each column in meth

Usage

1
expand.covs(covs, meth, weights = NULL)

Arguments

covs

data.frame of covariates

meth

matrix of methylation with same number of rows as covs

weights

matrix of weights with same dim as of rows as meth or NULL

Value

long-format data.frame with added columns for 'id', 'methylation' and 'CpG' (and possibly 'weights'). Has nrow == ncol(meth) * nrow(meth).


brentp/clustermodelr documentation built on May 13, 2019, 5:11 a.m.