Skip to content

Instantly share code, notes, and snippets.

@benwhalley
Created March 7, 2019 12:14
Show Gist options
  • Save benwhalley/28500118ef8a506ca51d1e4f4d757a4c to your computer and use it in GitHub Desktop.
Save benwhalley/28500118ef8a506ca51d1e4f4d757a4c to your computer and use it in GitHub Desktop.
```{r}
expand.grid(person=1:5, trial=1:10) %>%
group_by(person) %>%
mutate(trialnumcreate = row_number()) %>%
ungroup() %>%
arrange(person,trial)
mtcars %>%
ggplot(aes(mpg)) + geom_histogram(bins=8) + theme_classic()
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment