how to check if something is a single character in r code example Example: how to check if its a character in r a = "test" is.character(a) # TRUE