powered by
Add the new phenotypic values contained in 'pheno' to a mppData object.
mppData
mppData_add_pheno(mppData, pheno)
Return:
New mppData object with new phenotypic values added.
An object of class mppData.
data.frame with : 1) character genotypes identifiers; 2) numeric trait values. The genotypes identifiers must be identical to mppData$geno.id.
data.frame
character
numeric
mppData$geno.id
Vincent Garin
mppData_mdf_pheno, subset.mppData,
mppData_mdf_pheno
subset.mppData
data(mppData) pheno_new <- data.frame(geno.id = mppData$geno.id, ph1 = rnorm(498)) mppData <- mppData_add_pheno(mppData = mppData, pheno = pheno_new)
Run the code above in your browser using DataLab