Learn R Programming

RSEIS (version 3.7-4)

insertNAs: Insert NA in a vector at given break points

Description

Insert NA in a vector at given break points

Usage

insertNAs(v, w)

Arguments

v

original vector

w

break points

Value

vector with NA inserted

Details

Used for plotting lines that wrap around.

Examples

Run this code
# NOT RUN {
a  <-  1:20
b  <-  insertNAs(a, c(5, 12))
b 


# }

Run the code above in your browser using DataLab