I am currently learning R and just started with the dplyr package. The functions were working fine until the console started giving output that it couldn't find the variable. For example, I am working with a dataset about Roombas and I enter this code:
roomba %>%
count(Product)
Then I got this output:
Error in count(., Product) : object 'Product' not found
I know everything is correct because I tested it in RStudio Cloud. I then added quotation marks around Product in the desktop version and finally got an output (which I never had to). I am also encountering this issue when using "group_by, summarise,etc." Is there a way to fix this?
I reinstalled R and tested the code in RStudio Cloud.