Learn R Programming

RSEIS (version 3.5-2)

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

Details

Used for plotting lines that wrap around.

Examples

Run this code

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


Run the code above in your browser using DataLab