Explode a character vector

x %ee% p

Arguments

x

A character vector

p

A pattern

Value

a tibble

Details

This function is a pipe version of stringr::str_split for a character vector, with simplify = TRUE

Examples

c('The little horse under the weather', "He who gave courage", "It was a little white horse", 'All behind, all behind', "It was time of the little white horse", "All behind him before") %ee% " |'|, "
#> Warning: The `x` argument of `as_tibble.matrix()` must have unique column names if `.name_repair` is omitted as of tibble 2.0.0. #> Using compatibility `.name_repair`.
#> # A tibble: 6 × 8 #> V1 V2 V3 V4 V5 V6 V7 V8 #> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> #> 1 The little horse under "the" "weather" "" "" #> 2 He who gave courage "" "" "" "" #> 3 It was a little "white" "horse" "" "" #> 4 All behind all behind "" "" "" "" #> 5 It was time of "the" "little" "white" "horse" #> 6 All behind him before "" "" "" ""