insertNA {GEOmap}R Documentation

Insert NA in a vector

Description

Inserting NA values in a vector at specific index locations

Usage

insertNA(y, ind)

Arguments

y vector
ind index locations where NA is inserted

Details

The vector is parsed out and NA values are inserted where after the index values provided. An NA is also inserted at the end of the vector.

Value

v new vector with NA's

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

Examples

  x = 1:10
 insertNA(x, 6)

[Package GEOmap version 1.0-8 Index]