Hello,
I'm currently haunted by the group_by verb not working to restructure my data.
Elispot_data_2 <- Elispot_data_2 %>%
mutate(Year = factor(Year, levels = c(2019,2020)),
Organ = factor(Organ, levels = c("Spleen","Lung")),
Group_name = factor(Group_name, levels=c("Phuket 2013","Colorado 2017","Kansas 2017","Brisbane 2018","Last combination","pVAX")),
Type = factor(Type, levels=c("H1","H3","B")),
Pool = factor(Pool, levels = c("1","2","3"))) %>%
group_by(Year, Organ, Group_name, Type, Pool)
#> Error in Elispot_data_2 %>% mutate(Year = factor(Year, levels = c(2019, : could not find function "%>%"
Created on 2020-09-10 by the reprex package (v0.3.0)
'''
Despite trying to narrow the grouping down to by Pool, my data below show that the data refuse to group this way. It is still being grouped by "Animal" which is only still numeric. I've played with the code endlessly. Interestingly, the error message appearing in my reprex does not appear in my console, so I'm not sure if it's running fine or not. Can anyone identify an issue?