nrow {slinky} | R Documentation

## Slinky object dimensions

### Description

Get the number of rows and columns in L1000 data represented by Slinky object.

### Usage

    nrow(x)

    ## S4 method for signature 'Slinky'
    nrow(x)

    ncol(x)

    ## S4 method for signature 'Slinky'
    ncol(x)

### Arguments

`x` | an object of class Slinky

### Value

number of rows or columns of current (possibly subsetted) L1000 data set.

### Examples

    # for build/demo only.  You MUST use your own key when using the slinky
    # package.
    user_key <- httr::content(httr::GET('https://api.clue.io/temp_api_key'),
                              as='parsed')$user_key
    sl <- Slinky(user_key,
                     system.file('extdata', 'demo.gctx',
                          package='slinky'),
                     system.file('extdata', 'demo_inst_info.txt',
                         package = 'slinky'))
    ncol(sl)
    nrow(sl)

[Package slinky version 1.2.2 Index]