Learn R Programming

quickmapr (version 0.3.0)

s: 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

Run this code
# NOT RUN {
data(lake)
qm<-qmap(list(lake,elev,samples))
s(qm,"lake")
s(qm,3)
# }

Run the code above in your browser using DataLab