Learn R Programming

GenABEL (version 1.8-0)

as.genotype.snp.data: Attempts to convert snp.data to "genotype"

Description

A function to convert an object of snp.data-class to "genotype" data frame

Usage

"as.genotype"(x, ...)

Arguments

x
An object of snp.data-class
...
...

Value

A data-frame containing genotypes consumable by "genetics" library

See Also

as.character.snp.data, as.double.snp.data, as.hsgeno

Examples

Run this code
require(GenABEL.data)
data(srdta)
as.genotype(srdta@gtdata[1:5,1:10])

Run the code above in your browser using DataLab