Learn R Programming

REDCapCAST (version 25.3.1)

possibly_numeric: Tests if vector can be interpreted as numeric without introducing NAs by coercion

Description

Tests if vector can be interpreted as numeric without introducing NAs by coercion

Usage

possibly_numeric(data)

Value

logical

Arguments

data

vector

Examples

Run this code
c("1","5") |> possibly_numeric()
c("1","5","e") |> possibly_numeric()

Run the code above in your browser using DataLab