View source: R/readAnnotationFile.R
readSampleAnnotationFile | R Documentation |
Read in sample annotation file in the tsv-format, with or without row names
readSampleAnnotationFile(file, ...)
file |
A tab-delimited file without quotes, the first column must contain sample identifiers. In case the first column has no column name and it contains row names, they will be used as sample names. |
... |
Other parameters passed to |
A data.frame
containing sample annotation, with the first
column named as 'ExperimentName' that contains sample identifiers as character
strings. In case the input table contains the column 'ExperimentName', the
content in that column must match the row names, otherwise an error
is reported.
f1 <- system.file("extdata",
"sampleAnnotation/sampleAnnotationFile-withRowNames.txt",
package="ribiosExpression")
f2 <- system.file("extdata",
"sampleAnnotation/sampleAnnotationFile-withoutRowNames.txt",
package="ribiosExpression")
f1Read <- readSampleAnnotationFile(f1)
f2Read <- readSampleAnnotationFile(f2)
head(f1Read)
head(f2Read)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.