dwd_clean: Clean observation data

Description Usage Arguments Value Examples

Description

This function allows you to clean observation data which is already joined with station and phase information by filtering relevant information. Duplicates are removed and irrelevant columns as well as incomplete or low-quality (based on quality flags) observations are deleted.

Usage

1
dwd_clean(dwd_data)

Arguments

dwd_data

tibble containing DWD observation data to which station and phase information has been added already = return of dwd_add_phase_info and/or dwd_add_station_info.

Value

A tidyverse tibble containing the cleaned observation data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# read file into R
my_file <- dwd_read(dir_tmp) # result: tidyverse tibble

# add phase information from matching phase meta file
my_file <- dwd_add_phase_info(my_file)

# add station information from matching station meta file
my_file <- dwd_add_station_info(my_file)

# clean observation data
my_file <- dwd_clean(my_file)

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