check_quality: Quality check of temperature values from meteorological...

Description Usage Arguments Examples

View source: R/check_quality.R

Description

This function allows you to clean temperature timeseries in a data.frame

Usage

1
2
3
4
5
6
7
check_quality(
  df,
  max.col = "T_max",
  min.col = "T_min",
  return = "clean",
  verbose = F
)

Arguments

df

data.frame, A data.frame with a column in the Date format, and two columns for daily minimum and maximum temperature respectively

max.col

string, name of the column with daily maximum temperature

min.col

string, name of the column with daily minimum temperature

return

string, one of 'clean' or 'raw'. 'Raw' will give the dataframe that is used to check for errors while 'clean' will give the dataframe with wrong values removed and a complete timeseries between minimum and maximum date.

verbose

logical, if true the amount of rows that are dropped for a dataframe are printed out

Examples

1
check_quality(df = df.daily)

sitscholl/rebecka_package documentation built on Aug. 25, 2020, 4:20 a.m.