View source: R/split_vector_at.R
| split_vector_at | R Documentation |
This function splits a vector at specific positions.
split_vector_at(x, at)
x |
[atomic()'] |
at |
[ For example, |
A list.
Based on https://stackoverflow.com/a/19274414.
Other vector helpers:
check_numeric_vector(),
check_probability_vector(),
chunk_vector(),
equidistant_vectors(),
insert_vector_entry(),
map_indices(),
match_numerics(),
permutations(),
subsets(),
vector_occurrence()
x <- 1:10
split_vector_at(x, c(2, 3, 5, 7))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.