| sampleNames,loops-method {diffloop} | R Documentation |
sampleNames takes a loops object returns the names of
the samples in the structure. One can also update the names using
set replace.
## S4 method for signature 'loops' sampleNames(object) ## S4 replacement method for signature 'loops,ANY' sampleNames(object) <- value
object |
A loops object |
value |
New names when using set replace |
The examples show both accession and updating sample names.
Vector of sample names
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