View source: R/add_by_position.R
add_by_position | R Documentation |
Add element to vector by position
add_by_position(x, y, i)
x |
vector |
y |
new element(s) to add to vector. Must be coercible to type of |
i |
numeric scalar. Index where to add new elements.
Censored to min = 1 and max = length(x) + 1. Thus to add elements at end of
vector use |
add_by_position(LETTERS[1:5], "NEW", 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.