Learn R Programming

geoknife (version 1.6.11)

query: query webdata for various fields

Description

a method for finding possible values for a given field

Usage

query(.Object, field, ...)

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

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

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

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

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

Value

a character vector of values corresponding to the query field specified

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

Author

Jordan S. Read

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab