nums: Names as numerics

View source: R/utility.R

numsR 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)

via documentation built on May 31, 2023, 8:31 p.m.

Related to nums in via...