Learn R Programming

GenABEL (version 1.8-0)

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

Description

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

Usage

"as.character"(x, ...)

Arguments

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

Value

A matrix containing genotypes in character format

See Also

as.double.snp.data, as.hsgeno, as.genotype.snp.data

Examples

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

Run the code above in your browser using DataLab