I would like to figure out whether or not each value in my column is a numerical value or a non-numerical value.
df = data.frame(help = c(456, 'superduper'),
correct_answer = c("numeric","string"))
My first thought would be to consider if the value can be coerced to a number. E.g.:
is.na(as.numeric(as.character(df$help))) # FALSE TRUE
The bonus is that this will work for variations on number formats like
3.2 or even