3 ms·
Appreciate this is not Stackoverflow, and happy to take the discussion over there if you would like to raise a question. However, the function I would write is
by phillc73 9y ago
Appreciate this is not Stackoverflow, and happy to take the discussion over there if you would like to raise a question.
However, the function I would write is:
string_test <- function(x){
is.character(x) && length(x) == 1
}
If you can say where that will fail, I'd like to know because it seems like you probably have more experience than I do around this.