insertNA {GEOmap} | 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)