powered by
Tests if vector can be interpreted as numeric without introducing NAs by coercion
possibly_numeric(data)
logical
vector
c("1","5") |> possibly_numeric() c("1","5","e") |> possibly_numeric()
Run the code above in your browser using DataLab