castNumeric: Convert strings to numeric if possible, otherwise remains as...

View source: R/toolbox.R

castNumericR Documentation

Convert strings to numeric if possible, otherwise remains as is.

Description

Convert strings to numeric if possible, otherwise remains as is.

Usage

castNumeric(x)

Arguments

x

A string.

Value

A string, converted to numeric if possible.

Examples

castNumeric("100")

toolbox documentation built on Sept. 22, 2022, 1:09 a.m.

Related to castNumeric in toolbox...