possibly_numeric {REDCapCAST}R Documentation

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)

Arguments

data

vector

Value

logical

Examples

c("1","5") |> possibly_numeric()
c("1","5","e") |> possibly_numeric()

[Package REDCapCAST version 25.3.2 Index]