June 6th, 2024
dplyr
improves on capabilities already in R
:R
dplyr
practicalOpen BADAS3_practical.html
and complete exercises 1 to 3
dat <- group_by(mydata, group) dat2 <- summarise(dat, mean_var = mean(var, na.rm = TRUE))
%>%
R
: %>%
data_summarized <- mydata %>% group_by(group) %>% summarise(mean_var = mean(var, na.rm = TRUE))
Piping adequat for short sequence functions calls
dplyr
& %>% practicalOpen BADAS3_practical.html
and complete exercises 4 to 10