split_by | R Documentation |
Split by key column while preserving order according to the first occurence. R base split converts keys to factors, changing default order to alphanumeric.
split_by(.data, key)
key |
variable to split by |
tibble(x=c(1,1,1,2), y=c("B", "A", "B", "B"), z="foo") %>%
split_by(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.