powered by
Insert NA in a vector at given break points
insertNAs(v, w)
original vector
break points
vector with NA inserted
Used for plotting lines that wrap around.
# NOT RUN { a <- 1:20 b <- insertNAs(a, c(5, 12)) b # }
Run the code above in your browser using DataLab