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.

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 2.5-5 Index]