castNumeric {toolbox}R 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")

[Package toolbox version 0.1.1 Index]