insertNA | R Documentation |
Inserting NA values in a vector at specific index locations
insertNA(y, ind)
y |
vector |
ind |
index locations where NA is inserted |
The vector is parsed out and NA values are inserted where after the index values provided.
v |
new vector with NA's |
Jonathan M. Lees<jonathan.lees@unc.edu>
x = 1:10
insertNA(x, 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.