sampleNames-loops-method: Grab/Update Sample Names

Description Usage Arguments Details Value Examples

Description

sampleNames takes a loops object returns the names of the samples in the structure. One can also update the names using set replace.

Usage

1
2
3
4
5
## S4 method for signature 'loops'
sampleNames(object)

## S4 replacement method for signature 'loops,ANY'
sampleNames(object) <- value

Arguments

object

A loops object

value

New names when using set replace

Details

The examples show both accession and updating sample names.

Value

Vector of sample names

Examples

1
2
3
4
5
rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
load(rda)
sampleNames(loops.small)
nnames <- c('one', 'two', 'three', 'four', 'five', 'six')
sampleNames(loops.small) <- nnames

diffloop documentation built on Nov. 8, 2020, 5:48 p.m.