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