get_data_station_MECC: Function to extract data from file.

View source: R/Data_functions.R

get_data_station_MECCR Documentation

Function to extract data from file.

Description

Function to extract data from file.

Usage

get_data_station_MECC(station_id, var_name = "kl", date_bounds = NA)

Arguments

station_id

DWD station number (can be obtained with 'rdwd::findID("StationName")')

var_name

character with the name of the variable, corresponding to the default names from DWD (e.g. kl, more_precip, solar)

date_bounds

vector with two dates in the format ('yyyy-mm-dd'), indicating beggining and end of study period.

Details

To avoid errors and NA values in the SPEI and drought computation, preferably keep 'date_bounds = NA'

Value

list with three elements (1) data series; (2) data frame with info about station, (3) vector with 'NA' count.


pedroalencar1/DroughtSDF documentation built on May 8, 2023, 6:58 p.m.