select: Select annual climate variable from the annual dataset

View source: R/hist_data.R

selectR Documentation

Select annual climate variable from the annual dataset

Description

Processing downloaded annual climate records for a city for a particular temperature and precipitation variable.

Usage

select(city.hist.data, var.name, year.col.name = "Year", thresholds = 10)

Arguments

city.hist.data

A dataframe object that contains the different annual temperature and precipitaiton variable and years for a city. It can be a datafram object that is downloaded using download function.

var.name

A character object that specifies the column name of the selected climate variable in the city.hist.data.

year.col.name

A character object that specifies the column name used for the information of years in the city.hist.data.

thresholds

A number specifies the number of missing daily data acceptable for the selection of annual climate variable.

Value

A dataframe object that provides the information about the years and one selected climate variable for the city.

Author(s)

Yuchuan Lai

See Also

See Also as citylist and download.

Examples

# Download the annual data for Pittsburgh
pit.annual <- download("Pittsburgh", "annual")

# Process the annual data of Pittsburgh to obtain annual average temperature as a data.frame object
pit.temp <- select(pit.annual, "Avg.Temp")

yuchuan-lai/scifi documentation built on March 29, 2022, 6:24 a.m.