| labels.tskrr {xnet} | R Documentation |
Extract labels from a tskrr object
Description
These functions allow you to extract the labels from a
tskrr object. The function labels and the
function dimnames are aliases and do the exact same
thing. The functions rownames and colnames work like
you would expect. Note that contrary to the latter two, labels
will never return NULL. If no labels are found, it will construct
labels using the prefixes defined in the argument prefix.
Usage
## S3 method for class 'tskrr'
labels(
object,
prefix = if (is_homogeneous(object)) "row" else c("row", "col"),
...
)
## S4 method for signature 'tskrr'
labels(
object,
prefix = if (is_homogeneous(object)) "row" else c("row", "col"),
...
)
## S4 method for signature 'tskrr'
dimnames(x)
## S4 method for signature 'tskrr'
rownames(x, do.NULL = TRUE, prefix = "row")
## S4 method for signature 'tskrr'
colnames(x, do.NULL = TRUE, prefix = "col")
Arguments
object |
a |
prefix |
a prefix used for construction of the labels in case
none are available. For |
... |
arguments passed to/from other methods. |
x |
a |
do.NULL |
logical. If |
Value
for labels and dimnames: a list with two elements k and
g
Warning
If the original data didn't contain row- or column names for the
label matrix, rownames and colnames will return
NULL. Other functions will extract the automatically generated
labels, so don't count on rownames and colnames if you
want to predict output from other functions!