all.is.numeric(x, what = c("test", "vector"))
what="vector"
to return a numeric vector if
it passes the test, or the original character vector otherwise
what="test"
or a vector otherwise
Frank Harrell
all.is.numeric(c('1','1.2','3')) all.is.numeric(c('1','1.2','3a')) all.is.numeric(c('1','1.2','3'),'vector') all.is.numeric(c('1','1.2','3a'),'vector')