as.numeric_noDataLost: Change data type to numeric if no data is lost

View source: R/utils.R

as.numeric_noDataLostR Documentation

Change data type to numeric if no data is lost

Description

Change data type to numeric if no data is lost

Usage

as.numeric_noDataLost(x, warning = FALSE)

Arguments

x

a variable of type data.frame, list or atomic.

warning

if 'TRUE', throw a warning indicating which values can not be casted to numeric.

Value

returns the same variable as a numeric type only if there is no data lost. For data.frame and list, it change the data type per column/element.


jmaspons/dbTools documentation built on March 10, 2024, 7:30 p.m.