Created
September 22, 2019 17:00
-
-
Save abruyneel/2ca1fe4a74088815e06d74c8689f0c12 to your computer and use it in GitHub Desktop.
quick data summary using plyr in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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