Learn R Programming

RSEIS (version 3.3-3)

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
a  <-  1:20
b  <-  insertNAs(a, c(5, 12))
b

Run the code above in your browser using DataLab