I use code:
z <- filter(dat, Sex=="M" & Diet=="chow") %>% select(Bodyweight) %>% unlist.
And it is written: Error in select(., Bodyweight) : could not find function "select"
Do you know how to fix it? This code was written by professors from Harvard.. Probably I have not installed the appropriate package..