Learn R Programming

cape (version 2.0.2)

get.geno: Retrieve the genotype matrix.

Description

This function retrieves the genotype matrix either from the data object or the genotype object. If the genotype matrix is held in a separate genotype object, the marker and individual information in the data object is used to filter the genotype matrix to the appropriate markers and individuals.

Usage

get.geno(data.obj, geno.obj)

Arguments

data.obj
The object in which all results are stored. See read.population.
geno.obj
The object in which genotype data are stored. See read.geno.

Value

Returns a matrix of genotype values for the individuals and markers specified in the data object.

See Also

read.geno read.pheno make.data.obj read.population get.pheno