Insert NA in a vector at given break points

Share:

Description

Insert NA in a vector at given break points

Usage

1
insertNAs(v, w)

Arguments

v

original vector

w

break points

Details

Used for plotting lines that wrap around.

Value

vector with NA inserted

Author(s)

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

Examples

1
2
3
a  <-  1:20
b  <-  insertNAs(a, c(5, 12))
b 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.