Learn R Programming

okmesonet (version 0.1.5)

okcurobs: Retrieve Oklahoma Mesonet current observations

Description

Retrieve current observations from all Oklahoma Mesonet stations.

Usage

okcurobs(SI = TRUE, localtime = TRUE)

Arguments

SI
logical; if TRUE, convert observations to SI units. See 'Details'.
localtime
logical; if TRUE output time is local to Oklahoma. If FALSE, output time is Coordinated Universal Time (UTC).

Value

A data frame with current observations.

Details

See Current Observations for variable and unit description. Current observations are stored in 'American' units. SI=TRUE converts to the 'International System of Units' (though Celsius is used instead of Kelvin for temperature).

A TIME variable of class POSIXct is added. localtime=TRUE returns TIME as local Oklahoma time; localtime=FALSE returns TIME as UTC.

See Also

okmts

Examples

Run this code
## Not run: 
# ## Retrieve current observations.
# curobs <- okcurobs()
# ## End(Not run)

Run the code above in your browser using DataLab