Hi,
I have a cvs file and want to run a randomised trial on it and generate a plot, but when running i've been getting an error in the group_by, see below. How do I fix this?
library(tidyverse)
chick_data_2022_03_22<-readr::read_csv
diff_in_means<-chick_data_2022_03_22 %>%
- group_by(growth_rate)%>%
- summarise(mean=mean(growth_rate))%>%
- summarise(diff=diff(mean))%>%as.numeric()
Error in UseMethod("group_by") :
no applicable method for 'group_by' applied to an object of class "function"