Learn R Programming

RSEIS (version 4.2-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)

Value

vector with NA inserted

Arguments

v

original vector

w

break points

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

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