R: Attempts to convert snp.data to double

as.double.snp.data {GenABEL} | R Documentation

## Attempts to convert snp.data to double

### Description

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

### Usage

    	## S3 method for class 'snp.data'
    as.double(x, ...)

### Arguments

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

### Value

A matrix containing genotypes in double (numeric) format

### Author(s)

Yurii Aulchenko

### See Also

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

### Examples

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

[Package GenABEL version 1.8-0 Index]