expand_on | R Documentation |
Split column values by a delimiter, then expand them into new rows
expand_on(indf, .var, delim = ";")
indf |
input data.frame |
.var |
the column in 'indf' to split. should be character-type |
delim |
the string delimiter to split on |
A data frame where data frae, 'indf', where the strings in column, '.var', have been split by delimiter, 'delim'
tidyr::separate_rows
library(dplyr) library(magrittr) library(tidyr) iris %>% mutate_at(vars(Species), as.character) %>% expand_on(Species, "o") %>% select(Species) %>% table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.