mppData_mdf_pheno: Modify the phenotypic values of a mppData object

View source: R/mppData_mdf_pheno.R

mppData_mdf_phenoR Documentation

Modify the phenotypic values of a mppData object

Description

Modify the phenotypic values of a mppData object.

Usage

mppData_mdf_pheno(mppData, pheno)

Arguments

mppData

An object of class mppData.

pheno

Two columns data.frame with : 1) character genotypes identifiers; 2) numeric trait values. The genotypes identifiers must be identical to mppData$geno.id. The trait value identifiers must correspond to a trait already in the mppData object.

Value

Return:

mppData

New mppData object with modified phenotypic values added.

Author(s)

Vincent Garin

See Also

mppData_add_pheno, subset.mppData,

Examples


data(mppData)
pheno_new <- data.frame(geno.id = mppData$geno.id, ULA = rnorm(498))

mppData <- mppData_mdf_pheno(mppData = mppData, pheno = pheno_new)


vincentgarin/mppR documentation built on March 13, 2024, 7:30 p.m.