Learn R Programming

GenABEL (version 1.8-0)

as.double.snp.data: Attempts to convert snp.data to double

Description

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

Usage

"as.double"(x, ...)

Arguments

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

Value

A matrix containing genotypes in double (numeric) format

See Also

as.character.snp.data, as.hsgeno, as.genotype.snp.data

Examples

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

Run the code above in your browser using DataLab