read.snpData: Read SNP tables as a snpMatrix object

Description Usage Arguments Examples

View source: R/snpData.R

Description

Reads a file in table format and as a snpMatrix object.

Usage

1
2
read.snpData(file, sep = " ", quote = "\"", na.string = "NA",
  nrows = -1L)

Arguments

file

the name of the file which the data are to be read from. If it does not contain an absolute path, the file name is relative to the current working directory, getwd(). Tilde-expansion is performed where supported.

sep

a field separator character. Values on each line of the file are separated by this character.

quote

the set of quoting characters. To disable quoting altogether, use quote = "".

na.string

a string which is interpreted as NA value.

nrows

a integer, the maximum number of rows to read.

Examples

1
2
3
# file containing example data for SNP data
gfile <- system.file("extdata/snpdata.csv", package = "qtcat")
snp <- read.snpData(gfile, sep = ",")

QTCAT/qtcat documentation built on April 20, 2021, 11:20 p.m.