Skip to content

Instantly share code, notes, and snippets.

@sllynn
Created September 17, 2019 14:05
Show Gist options
  • Save sllynn/71d4041f3d61cb75f546850111d4de89 to your computer and use it in GitHub Desktop.
Save sllynn/71d4041f3d61cb75f546850111d4de89 to your computer and use it in GitHub Desktop.
equivalent to `display()` for sparklyr dataframes
library(dplyr)
sdisplay <- function(x) {
x %>% sample_n(1000) %>% collect() %>% display
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment