Learn R Programming

BiostatsUHNplus (version 1.0.2)

as_numeric_parse: Modification of the as.numeric function that prints entries that fail to parse as a message

Description

Modification of the as.numeric function that prints entries that fail to parse as a message

Usage

as_numeric_parse(x)

Value

No return value, called for side effects

Arguments

x

string or vector to coerce to numeric

Examples

Run this code
z <- as_numeric_parse(c(1:5, "String1",6:10,"String2"))
z

Run the code above in your browser using DataLab