query: query webdata for various fields

Description Usage Arguments Value Author(s) Examples

Description

a method for finding possible values for a given field

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
query(.Object, field, ...)

## S4 method for signature 'webdata,character'
query(.Object, field, ...)

## S4 method for signature 'webdata,missing'
query(.Object, field, ...)

## S4 method for signature 'character,missing'
query(.Object, field, ...)

## S4 method for signature 'webgeom,character'
query(.Object, field, ...)

## S4 method for signature 'webprocess,character'
query(.Object, field, ...)

Arguments

.Object

a webdata, webgeom, or webprocess object.

field

a plural parameter name for fields in .Object (e.g., 'variables', 'times')

...

additional arguments passed to methods

Value

a character vector of values corresponding to the query field specified

Author(s)

Jordan S. Read

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
fabric <- webdata('prism')
query(fabric, 'variables')
wg <- webgeom()
query(wg, 'geoms')
geom(wg) <- "sample:CONUS_states"
query(wg, 'attributes')
attribute(wg) <- 'STATE'
query(wg, 'values', rm.duplicates = TRUE)

## End(Not run)

eric-erki/geoknife documentation built on Dec. 31, 2019, 12:54 a.m.