Skip to content

Instantly share code, notes, and snippets.

@bryanyang0528
Last active August 29, 2015 14:05
Show Gist options
  • Save bryanyang0528/7759a9c28c680c87f8d8 to your computer and use it in GitHub Desktop.
Save bryanyang0528/7759a9c28c680c87f8d8 to your computer and use it in GitHub Desktop.
R dplyr example 5
summarise(group_by(melted, sex, treatment, variable),
mean=mean(value), sd=sd(value))
melted %.% group_by(sex, treatment, variable) %.%
summarise(mean=mean(value), sd=sd(value))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment