powered by
is.string(x)
is.string("foobar") # [1] TRUE is.string(1) # [1] FALSE is.string(c("foo", "bar")) # [1] FALSE
Run the code above in your browser using DataLab