addPhenotypes: Add phenotypes to 'MagicGen' object

Description Usage Arguments Value Examples

Description

This function adds phenotypes to an existing 'MagicGen' object. The genotypes are kept only for those individuals with a genotype.

Usage

1
2
3
4
addPhenotypes(x, phenotypes, id)

## S4 method for signature 'MagicGen'
addPhenotypes(x, phenotypes, id)

Arguments

x

an object of class 'MagicGen'.

phenotypes

a 'data.frame' object with phenotypes.

id

the column name containing the MAGIC IDs in the 'phenotypes' table.

Value

a 'MagicGenPhen' object with phenotypes added to initial object.

Examples

1
# to be added...

tavareshugo/MagicHelpR documentation built on May 4, 2020, 3:01 p.m.