
Last chance! 50% off unlimited learning
Sale ends in
summarise(.data, ...)
ddply
as it
makes it easy to perform group-wise summaries.summarise(baseball,
duration = max(year) - min(year),
nteams = length(unique(team)))
ddply(baseball, "id", summarise,
duration = max(year) - min(year),
nteams = length(unique(team)))
Run the code above in your browser using DataLab