stratify_by_phenotype: stratify_by_phenotype

Description Usage Arguments Examples

View source: R/stratify_by_phenotype.R

Description

Combined two different list of data.frames/data.tables so that they can later be plotted

Usage

1

Arguments

ind

a named list individual IDs. Each list will be merged with the reference data.table.

ref

a named list of data.tables/data.frames with two columns, in which first column being the individual id, and the 2nd one being the phenotype value of interest.

Examples

1
2
3
4
5
6
7
## Not run: 
ind = list(healthy = letters[3:12], unhealthy = letters[13:26])
ref = list(disease1 = data.table(sid = letters[1:23], value = runif(23)))
result = stratify_by_phenotype(ind, ref)
head(result)

## End(Not run)

frhl/our documentation built on Feb. 5, 2021, 7:30 p.m.