is_string {envnames} | R Documentation |
WARNING: This function fails when the value of x is "x"!! (i.e. it returns TRUE even when object 'x' is NOT a string per se –i.e. it was not passed as "x")
is_string(x)
x |
object to check. |
The result of this function is different from is.character(x) since this function returns TRUE for an array of character values!
boolean indicating whether the object is a string.