delete phenotypes from phdata...

del.phdata {GenABEL}R Documentation

delete phenotypes from phdata...

Description

delete phenotypes from phdata

Usage

del.phdata(data, what, all=FALSE)

Arguments

data an object of gwaa.data-class
what which phenotypes (variables) to delete, expressed as (vector of) names (character) or integer (column of phdata data frame)
all if 'all'=TRUE and 'what' is misisng, all phenotypes are deleted, and only the 'id' and 'sex' are kept

Details

This function is used to delete certain phenotypes from phenotypic part (phdata) of an object of gwaa.data-class

Author(s)

Yurii Aulchenko

Examples

data(srdta)
phdata(srdta)[1:5,]
srdta <- del.phdata(srdta,"qt1")
phdata(srdta)[1:5,]
srdta <- del.phdata(srdta,all=TRUE)
phdata(srdta)[1:5,]

[Package GenABEL version 1.6-7 Index]