Learn R Programming

quickmapr (version 0.3.0)

i: Identify

Description

Interactively select an sp or raster object and print the data associated with it. i() only accepts a single input point.

Usage

i(qmap_obj = NULL, i_idx = 1, loc = NULL)

Arguments

qmap_obj

a qmap object from which to identify features.

i_idx

a numeric value specifying which data layer to identify 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 until escaped.

Value

Returns NULL. Identified values are printed to the screen.

Examples

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

Run the code above in your browser using DataLab