Error in R : object not interpretable as a factor (2 Examples)
In this tutorial you’ll learn how to handle the “Error in X : object not interpretable as a factor” in the R programming language.
Example 1: How to Replicate the Error Message – object not interpretable as a factor
C("a", "b", "c", "d") # Misspelled c() function # Error in C("a", "b", "c", "d") : object not interpretable as a factor |
C("a", "b", "c", "d") # Misspelled c() function # Error in C("a", "b", "c", "d") : object not interpretable as a factor
Example 2: How to Fix the Error Message – object not interpretable as a factor
c("a", "b", "c", "d") # Proper spelling (i.e. lower case) of c() function # [1] "a" "b" "c" "d" |
c("a", "b", "c", "d") # Proper spelling (i.e. lower case) of c() function # [1] "a" "b" "c" "d"
Further Resources
You may find some additional R tutorials on topics such as naming data, coding errors, data objects, and character strings in the following list: