ids {cmapR} | R Documentation

## Extract the or set row or column ids of a GCT object

### Description

Extract the or set row or column ids of a GCT object

### Usage

    ids(g, dimension = "row")

    ## S4 method for signature 'GCT'
    ids(g, dimension = "row")

    ## S4 replacement method for signature 'GCT'
    ids(g, dimension = "row") <- value

### Arguments

`g` | the GCT object
`dimension` | the dimension to extract/update ['row' or 'column']
`value` | a character vector

### Value

a vector of row ids

### See Also

Other GCT accessor methods: `mat()`, `meta()`

### Examples

    # extract rids
    rids <- ids(ds)
    # extract column ids
    cids <- ids(ds, "column")
    # set rids
    ids(ds) <- as.character(1:length(rids))
    # set cids
    ids(ds, "column") <- as.character(1:length(cids))

[Package cmapR version 1.0.0 Index]