Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

chronosphere

Earth System History Variables

v0.4.1
CC BY 4.0
Authors
Adam T. Kocsis, Nussaibah B. Raja
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.