s: Select

Description Usage Arguments Value Examples

View source: R/s.R

Description

Interactively select a single sp or raster object and return the object. s() only accepts a single input point.

Usage

1
s(qmap_obj = NULL, s_idx = 1, loc = NULL)

Arguments

qmap_obj

a qmap object from which to select features.

s_idx

a numeric value specifying which data layer to select or a character string indicating the name of the layer. Defaults to 1.

loc

A list with an x and y numeric indicating a location. Default is to interactively get loc value.

Value

Returns a selected sp object

Examples

1
2
3
4
5
6
7
## Not run: 
data(lake)
qm<-qmap(list(lake,elev,samples))
s(qm,"lake")
s(qm,3)

## End(Not run)

quickmapr documentation built on May 2, 2019, 3:29 p.m.