Description Usage Arguments Value See Also Examples
Get or set the row or column names of a matrix-like object.
NOTE: This man page is for the rownames
, `rownames<-`
,
colnames
, and `colnames<-`
S4 generic functions
defined in the BiocGenerics package.
See ?base::rownames
for the default methods
(defined in the base package).
Bioconductor packages can define specific methods for objects
(typically matrix-like) not supported by the default methods.
1 2 3 4 5 |
x |
A matrix-like object. |
do.NULL, prefix |
See |
value |
Either |
The getters will return NULL
or a character vector of length
nrow(x)
for rownames
and length ncol(x)
for colnames(x)
.
See ?base::rownames
for more information about the
default methods, including how the setters are expected to behave.
Specific methods defined in Bioconductor packages should behave as consistently as possible with the default methods.
base::rownames
for the default rownames
,
`rownames<-`
, colnames
, and `colnames<-`
methods.
showMethods
for displaying a summary of the
methods defined for a given generic function.
selectMethod
for getting the definition of
a specific method.
rownames,DataFrame-method in the S4Vectors
package for an example of a specific rownames
method (defined
for DataFrame objects).
BiocGenerics for a summary of all the generics defined in the BiocGenerics package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## rownames getter:
rownames # note the dispatch on the 'x' arg only
showMethods("rownames")
selectMethod("rownames", "ANY") # the default method
## rownames setter:
`rownames<-`
showMethods("rownames<-")
selectMethod("rownames<-", "ANY") # the default method
## colnames getter:
colnames # note the dispatch on the 'x' arg only
showMethods("colnames")
selectMethod("colnames", "ANY") # the default method
## colnames setter:
`colnames<-`
showMethods("colnames<-")
selectMethod("colnames<-", "ANY") # the default method
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.