ids {cmapR} | R Documentation |
Extract the or set row or column ids of a GCT object
ids(g, dimension = "row") ## S4 method for signature 'GCT' ids(g, dimension = "row") ids(g, dimension = "row") <- value ## S4 replacement method for signature 'GCT' ids(g, dimension = "row") <- value
g |
the GCT object |
dimension |
the dimension to extract/update ['row' or 'column'] |
value |
a character vector |
a vector of row ids
Other GCT accessor methods:
mat()
,
meta()
# 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))