Learn R Programming

diffloop (version 1.0.2)

sampleNames,loops-method: Grab/Update Sample Names

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

## S3 method for class 'loops':
sampleNames(object)

## S3 method for class 'loops,ANY': sampleNames(object) <- value

Arguments

object
A loops object
value
New names when using set replace

Value

  • Vector of sample names

Details

The examples show both accession and updating sample names.

Examples

Run this code
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

Run the code above in your browser using DataLab