row+colnames {BiocGenerics} | R Documentation |
Retrieve the row or column names of a matrix-like R object.
NOTE: This man page is for the rownames
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.
rownames(x, do.NULL=TRUE, prefix="row") colnames(x, do.NULL=TRUE, prefix="col")
x |
A matrix-like R object. |
do.NULL, prefix |
See |
NULL
or a character vector of length nrow(x)
for rownames
and ncol(x)
for colnames(x)
.
See ?base::rownames
for more information about the
default methods.
Specific methods defined in Bioconductor packages should behave as consistently as possible with the default methods.
base::rownames
for the default rownames
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 IRanges 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.
rownames # note the dispatch on the 'x' arg only showMethods("rownames") selectMethod("rownames", "ANY") # the default method colnames # note the dispatch on the 'x' arg only showMethods("colnames") selectMethod("colnames", "ANY") # the default method