s: Select

View source: R/s.R

sR Documentation

Select

Description

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

Usage

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

## Not run: 
data(lake)
qm<-qmap(list(lake,elev,samples))
s(qm,"lake")
s(qm,3)

## End(Not run)

jhollist/quickmapr documentation built on Oct. 15, 2023, 10:07 p.m.