I created a dataset in excel and then I saved it to my computer as a .csv and was able to import it into R. I can use the view() function, but whenever I try to manipulate the dataset, I get the message:
Error: Problem with mutate() input Total_wins.
object 'Home_win' not found
And whenever I try to use it with ggplot, I get the following message:
Error in as.data.frame.default(x[[i]], optional = TRUE) :
cannot coerce class ‘c("LayerInstance", "Layer", "ggproto", "gg")’ to a data.frame
What can I do to make my dataset useable in R?