to_num: Convert to number

View source: R/R ez.R

to_numR Documentation

Convert to number

Description

This function returns a numeric value or vector, which can be integer or decimal, containing non-numeric characters that prevent transformation.

Usage

to_num(x)

Arguments

x

Vector of numeric type or character

Examples

x = c("1","2","3.1","4,2","5,0")
to_num(x)

bfernandez2/ezR documentation built on April 4, 2022, 1:54 p.m.