sampleNames,loops-method {diffloop} | R Documentation

## 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

    ## 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

    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

[Package diffloop version 1.18.0 Index]