convertToNumeric: Convert a character vector to numeric values

View source: R/convertToNumeric.R

convertToNumericR Documentation

Convert a character vector to numeric values

Description

Function to convert a character vector to numeric values.

Usage

convertToNumeric(x)

Arguments

x
  • vector of values on which to perform conversion

Details

Values with commas are converted after stripping out commas. Values with percent signs are converted after removing percent signs and converting to fractions (i.e., dividing by 100). Otherwise, this works as as.numeric(v) would.

Value

a vector of the same length as x converted to numeric


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.