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

addPhenotypes(x, phenotypes, id)

# S4 method for 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

# to be added...