Description Usage Arguments Examples
Reads a file in table format and as a snpMatrix object.
1 2 | read.snpData(file, sep = " ", quote = "\"", na.string = "NA",
nrows = -1L)
|
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,
|
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
|
na.string |
a string which is interpreted as NA value. |
nrows |
a integer, the maximum number of rows to read. |
1 2 3 | # file containing example data for SNP data
gfile <- system.file("extdata/snpdata.csv", package = "qtcat")
snp <- read.snpData(gfile, sep = ",")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.