to_numeric: Convert Object to a Numeric

Description Usage Arguments Examples

Description

Robustly converts objects to numerics, converts factors to numeric as number dicplayed not reference category.

Usage

1

Arguments

x

An R object. Accepts three forms of the extract operator, the slot operator is untested.

Examples

1
2
x <- sample(1:100, size = 100, replace = TRUE)
to_numeric(x)

jonathanbart/baxtr documentation built on May 23, 2019, 4:04 a.m.