Learn R Programming

GEOmap (version 2.1)

GEOmap.breakline: Break a line at specified indeces into a list

Description

Break a line at specified indices into a list

Usage

GEOmap.breakline(Z, ww)

Arguments

Z
list of x,y location values
ww
index vector of break locations

Value

  • newxlist x of strokes
  • newylist y of strokes

Examples

Run this code
Y=list()
Y$x=c(170,175,184,191,194,190,177,166,162,164)
Y$y=c(-54,-60,-60,-50,-26,8,34,37,10,-15)

GEOmap.breakline(Y, 5)

Run the code above in your browser using DataLab