Skip to content

Instantly share code, notes, and snippets.

@zachlim98
Created February 11, 2021 07:16
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 zachlim98/4168a9586546a5ffb23f62bb002aa334 to your computer and use it in GitHub Desktop.
Save zachlim98/4168a9586546a5ffb23f62bb002aa334 to your computer and use it in GitHub Desktop.
query <- plottest %>% dplyr::filter(price<0.85) %>% group_by(sim) %>% slice_head()
cat("P50: ",(nrow(query)/1000))
## P50: 0.859
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment