possibly_numeric: Tests if vector can be interpreted as numeric without...

View source: R/as_factor.R

possibly_numericR 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()

REDCapCAST documentation built on April 4, 2025, 3:18 a.m.