Learn R Programming

chronosphere (version 0.4.0)

nums: Names as numerics

Description

The set of functions return names of objects directly transformed to numeric values.

Usage

nums(x)

colnums(x)

rownums(x)

Arguments

x

Object with names, colnames or rownames attributes.

Value

Numeric vector.

Examples

Run this code
# NOT RUN {
data(dems)
# ages as numerics
nums(dems)
# younger than 20Ma
dems[nums(dems)<20]


# }

Run the code above in your browser using DataLab