insertNA: Insert NA in a vector

Description Usage Arguments Details Value Author(s) Examples

View source: R/insertNA.R

Description

Inserting NA values in a vector at specific index locations

Usage

1
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

1
2
  x = 1:10
 insertNA(x, 6)

GEOmap documentation built on May 2, 2019, 8:56 a.m.