split_vector_at {oeli} | R Documentation |
Split a vector at positions
Description
This function splits a vector at specific positions.
Usage
split_vector_at(x, at)
Arguments
x |
[atomic()'] |
at |
[ For example, |
Value
A list
.
References
Based on https://stackoverflow.com/a/19274414.
See Also
Other vector helpers:
check_numeric_vector()
,
check_probability_vector()
,
chunk_vector()
,
insert_vector_entry()
,
map_indices()
,
match_numerics()
,
permutations()
,
subsets()
,
vector_occurrence()
Examples
x <- 1:10
split_vector_at(x, c(2, 3, 5, 7))
[Package oeli version 0.7.4 Index]