Description Usage Arguments Details Value Examples
Update the matrix of an existing GCTX file
1 2 3 4 | ## S3 method for class 'gctx'
update(...)
update_gctx(x, ofile, rid = NULL, cid = NULL)
|
... |
arguments passed on to |
x |
an array of data |
ofile |
the filename of the GCTX to update |
rid |
integer indices or character ids of the rows to update |
cid |
integer indices or character ids of the columns to update |
Overwrite the rows and columns of ofile
as indicated by rid
and cid
respectively.
rid
and cid
can either be integer indices
or character ids corresponding to the row and column ids
in ofile
.
silently returns NULL
1 2 3 4 5 6 7 8 9 10 | ## Not run:
m <- matrix(rnorm(20), nrow=10)
# update by integer indices
update_gctx(m, ofile="my.gctx", rid=1:10, cid=1:2)
# update by character ids
row_ids <- letters[1:10]
col_ids <- LETTERS[1:2]
update_gctx(m, ofile="my.gctx", rid=row_ids, cid=col_ids)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.