Learn R Programming

pepr (version 0.3.2)

getSample: Extract samples

Description

This method extracts the samples

Usage

getSample(.Object, sampleName)

# S4 method for Project,character getSample(.Object, sampleName)

Arguments

.Object

An object of Project class

sampleName

character the name of the sample

Value

data.table one row data table with the sample associated metadata

Methods (by class)

  • .Object = Project,sampleName = character: extracts the sample from the "'>Project" object

Examples

Run this code
# NOT RUN {
projectConfig = system.file(
"extdata",
"example_peps-master",
"example_basic",
"project_config.yaml",
package = "pepr"
)
p = Project(projectConfig)
sampleName = "frog_1"
getSample(p, sampleName)
# }

Run the code above in your browser using DataLab