dwd_process: Process DWD phenology files

Description Usage Arguments Value Examples

Description

This function allows you to process and join all relevant files of one crop at once.
The following processing steps are applied to each file in the passed folder:

  1. read downloaded file into R (dwd_read)

  2. add phase information from matching meta files (dwd_add_phase_info)

  3. add station information from matching meta files (dwd_add_station_info)

  4. clean data (dwd_clean)

Then, the files are joined (dwd_join_files) and returned as one single tidyverse tibble.
Note: The single functions for these steps can be accessed individually as well.

Usage

1

Arguments

dir

directory of the folder which contains all DWD files to be processed (not ending with "/").

Value

A tidyverse tibble containing the processed and joined DWD phenology data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## set directory where data files shall be saved
my_dir <- "C:/Users/.../my_folder"

## check available crops  and their abbreviations
dwd_crop_list()

## download
# both data + meta files
dwd_download("RBU",1900,2019,"JMSM",my_dir)

## create directory to folder containing files to be processed
folder_dir <- paste0(my_dir, "/RBU") # modify abbreviation accordingly

## process and join all files in folder
rbu_data <- dwd_process(dir)

malinfischer/phenoTS documentation built on May 14, 2019, 12:56 a.m.