character(length = 0) as.character(x) is.character(x)
""
as.character attempts to coerce its argument to be of character type.
as.character
is.character returns TRUE or FALSE depending on whether its argument is of character type or not.
is.character
TRUE
FALSE