Learn R Programming

chronosphere (version 0.4.1)

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)

Value

Numeric vector.

Arguments

x

Object with names, colnames or rownames attributes.

Examples

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


Run the code above in your browser using DataLab