dot-safe.as.numeric: Safely convert a string to a numeric

.safe.as.numericR Documentation

Safely convert a string to a numeric

Description

Will convert empty strings or strings that contain a single whitespace to a 0. Typically used internally

Usage

.safe.as.numeric(x)

Arguments

x

A character vector to be converted

Value

A numeric vector or a character vector if it cannot be converted losslessly


TJGorrie/miRoar documentation built on April 10, 2024, 4:28 p.m.