powered by
Insert NA in a vector at given break points
insertNAs(v, w)
vector with NA inserted
original vector
break points
Jonathan M. Lees<jonathan.lees@unc.edu>
Used for plotting lines that wrap around.
a <- 1:20 b <- insertNAs(a, c(5, 12)) b
Run the code above in your browser using DataLab