Learn R Programming

GEOmap (version 2.1)

GEOmap.Extract: Extract from GEOmap

Description

Extract or Exclude parts of a GEOmap list.

Usage

GEOmap.Extract(MAP, SEL, INOUT = "out")
fastExtract(MAP, SEL, INOUT = "out")
GEOmap.limit(MAP, LLlim )

Arguments

MAP
GEOmap List
SEL
Selection of stroke indeces to include or exclude
INOUT
text, "in" means include, "out" means exclude
LLlim
vector latlon limits

Value

  • GEOmaplist

Details

Can either extract from the GEOmap data list with in, or exclude with out. fastExtract is the same but may be faster since it does not process all the strokes in the base GEOmap.

See Also

GEOmap.cat, GEOmap.Extract, GEOmap.CombineStrokes, list.GEOmap, getGEOmap, plotGEOmap, SELGEOmap, boundGEOmap,

Examples

Run this code
data(coastmap)
SEL=which(coastmap$STROKES$nam=="AMERICAS")
NSAMER =  GEOmap.Extract(coastmap,SEL, INOUT="in" )
plotGEOmap(NSAMER)

Run the code above in your browser using DataLab