Description Usage Arguments Value Examples
Subsetting Slinky objects
1 2 3 4 5 6 7 8 9 10 11 | ## S4 method for signature 'Slinky,numeric,numeric,ANY'
x[i, j]
## S4 method for signature 'Slinky,missing,numeric,ANY'
x[i, j]
## S4 method for signature 'Slinky,missing,missing,ANY'
x[i, j]
## S4 method for signature 'Slinky,numeric,missing,ANY'
x[i, j]
|
x |
A Slinky Object |
i |
row index |
j |
column indes Subsets a Slinky object. This does not touch the data on file, it simply adjusts the index slots in the resulting Slinky object to speed up subsequent data operations. |
The subsetted Slinky object
1 2 3 4 5 6 7 8 9 10 11 | # 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'))
colnames(sl[,1:5])
rownames(sl[1:5,1:5])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.