Skip to content

Instantly share code, notes, and snippets.

@adisarid
Created April 28, 2019 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adisarid/6c7dbd38b5da09e0de99b90aa8300403 to your computer and use it in GitHub Desktop.
Save adisarid/6c7dbd38b5da09e0de99b90aa8300403 to your computer and use it in GitHub Desktop.
1b;2d;3c;4d;5b;6c;7c;8a;9d;10c.
@jdemello
Copy link

jdemello commented Apr 29, 2019

Just a few observations:

Question 2 has an equivalent sans tidyverse with data.table:

data.table::setDT(new_data)

new_data[, .(average=mean(avg_me, na.rm=T)), by="some_cool_suff"] 

2(d) is incorrect then.

Also question 3, geom_smooth() is needed to generate figure 2 (i.e. geom_point() + geom_smooth()).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment