insertNA: Insert NA in a vector

View source: R/insertNA.R

insertNAR 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)

GEOmap documentation built on Sept. 1, 2023, 5:09 p.m.