But when I run the code in R Desktop, I get "Error in filter(ToothGrowth, dose == 0.5) : object 'dose' not found". I can't for the life of me figure out what is wrong. This works in R Cloud, btw, just not in the Desktop version. Any help would be greatly appreciated; I'm about to throw it all out the window and play MMORPG games so I can kill things in a socially acceptable manner...
I did exactly the same thing and I still get the same result:
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
data("ToothGrowth")
View(ToothGrowth)
filtered_tg <- filter(ToothGrowth, dose==0.5)