nums {via} | R Documentation |
Names as numerics
Description
The set of functions return names of objects directly cast to numeric values.
Usage
nums(x)
colnums(x)
rownums(x)
Arguments
x |
Object with names, colnames or rownames attributes. |
Value
Numeric vector.
Examples
# base R object
a <- 1:10
names(a) <- seq(10, 100, 10)
nums(a)
# XArray
data(exemplar)
colnums(exemplar)
rownums(exemplar)
[Package via version 0.2.0 Index]