split_vector {baizer} | R Documentation |
split vector into list
Description
split vector into list
Usage
split_vector(vector, breaks, bounds = "(]")
Arguments
vector |
vector |
breaks |
split breaks |
bounds |
"(]" as default, can also be "[), []" |
Value
list
Examples
split_vector(1:10, c(3, 7))
split_vector(stringr::str_split("ABCDEFGHIJ", "") %>% unlist(),
c(3, 7),
bounds = "[)"
)
[Package baizer version 0.8.0 Index]