split_at | R Documentation |
Split vector
split_at(x, pos)
x |
vector with positions to split. |
Split vector at position(s). Returns a list
with all elements before and
after the split position.
list
## Not run:
set.seed(42)
x <- sample(x = 1:10, size = 5)
split_at(x = x, pos = 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.