mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-21 14:09:08 +02:00
382 B
382 B
Tests if vector can be interpreted as numeric without introducing NAs by coercion
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()
#> [1] TRUE
c("1","5","e") |> possibly_numeric()
#> [1] FALSE