Skip to content

Instantly share code, notes, and snippets.

@abruyneel
Created September 22, 2019 17:00
Show Gist options
  • Save abruyneel/2ca1fe4a74088815e06d74c8689f0c12 to your computer and use it in GitHub Desktop.
Save abruyneel/2ca1fe4a74088815e06d74c8689f0c12 to your computer and use it in GitHub Desktop.
quick data summary using plyr in R
library(plyr)
summary <- ddply(dataset, .(GroupA, GroupB), summarize,
mean = round(mean(var), 2),
sd = round(sd(var), 2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment