mat {cmapR} | R Documentation

## Extract or set the matrix of GCT object

### Description

Extract or set the matrix of GCT object

### Usage

    mat(g)

    ## S4 method for signature 'GCT'
    mat(g)

    mat(g) <- value

    ## S4 replacement method for signature 'GCT'
    mat(g) <- value

### Arguments

`g` | the GCT object
`value` | a numeric matrix

### Value

a matrix

### See Also

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

### Examples

    # get the matrix
    m <- mat(ds)
    # set the matrix
    mat(ds) <- matrix(0, nrow=nrow(m), ncol=ncol(m))

[Package cmapR version 1.6.0 Index]