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.
Examples
# base R object
a <- 1:10
names(a) <- seq(10, 100, 10)
nums(a)
#> [1] 10 20 30 40 50 60 70 80 90 100
# XArray
data(exemplar)
colnums(exemplar)
#> [1] 1 2 3 4
rownums(exemplar)
#> [1] 10 20 30