Learn R Programming

gsrc (version 1.0.1)

read_sample_sheets: Read sample sheet(s)

Description

Read one or multiple sample sheets in csv format. The information is used to translate between cryptic names (e.g. provided by service provider) and names that can be interpreted.

Usage

read_sample_sheets(files, skip = NULL, cols = c("SampleID", "SentrixBarcode_A", "SentrixPosition_A"))

Arguments

files
Path to sample sheet.
skip
Integer, lines to skip, before data is read. If not provided, the program looks for entry __[Data]__
cols
Character vector, column names to use.

Value

A data.frame containing the idat names and the meaningful names of the samples.

Examples

Run this code
if(require(brassicaData)){
samples <- read_sample_sheets(files = list.files(system.file("extdata",
package = "brassicaData"), full.names = TRUE, pattern = "csv"))
}

Run the code above in your browser using DataLab