Error in FUN(X[[i]], ...) : object 'Species' not found

Hello everyone. I am very much new to R. I am trying to learn with a project.
But I am continuously getting this error Error in FUN(X[[i]], ...) : object 'variable' not found .
Please help me to solve this. Thanks in ADVANCE.
you can find the data's link is here: https://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/
read.csv("C:/Users/neu/Desktop/uciw//winequality-red.csv")
readfile <- read.csv("C:/Users/neu/Desktop/uciw//winequality-red.csv", TRUE, ";", encoding = "UTF-8")
data(readfile)
WinePlot <- ggplot(readfile, aes(chlorides, quality, colour = Species)) + geom_point()

print(WinePlot + ggtitle("Chlorides and quality of red wine"))

I downloaded that data set and I see that there is no column named Species. Here is a listing of the columns.

readfile <- read.csv("~/R/Play/winequality-red.csv", TRUE, ";", encoding = "UTF-8")
names(readfile)
 [1] "fixed.acidity"        "volatile.acidity"     "citric.acid"         
 [4] "residual.sugar"       "chlorides"            "free.sulfur.dioxide" 
 [7] "total.sulfur.dioxide" "density"              "pH"                  
[10] "sulphates"            "alcohol"              "quality"     

Can you explain why you expect the data to have a Species column?

Please have a look at our homework policy, homework inspired questions are welcome but they should not include verbatim instructions from your course.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.