Description Usage Arguments Value Examples
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:
read downloaded file into R (dwd_read
)
add phase information from matching meta files (dwd_add_phase_info
)
add station information from matching meta files (dwd_add_station_info
)
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.
1 |
dir |
directory of the folder which contains all DWD files to be processed (not ending with "/"). |
A tidyverse tibble containing the processed and joined DWD phenology data.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.