Last active
October 20, 2017 04:34
-
-
Save yutannihilation/64655a7e5635f3933b90e1101626bb0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# w/ purrrlyr | |
df.jp.prefs.hex %>% | |
purrrlyr::slice_rows("id") %>% | |
purrrlyr::by_slice(make_hex) %>% magrittr::use_series(.out) %>% | |
sf::st_sfc() | |
# w/ purrr | |
df.jp.prefs.hex %>% | |
split(.$id) %>% | |
purrr::map(make_hex) %>% | |
sf::st_sfc() | |
# w/ dplyr | |
df.jp.prefs.hex %>% | |
group_by(id) %>% | |
do(.out = make_hex(.)) %>% | |
magrittr::use_series(.out) %>% | |
sf::st_sfc() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment