remove.fun: Remove unwanted dates

Description Usage Arguments Details Value Examples

Description

Remove all data for the corresponding date argument

Usage

1
remove.fun(df, dates)

Arguments

df

Data frame containing a DOY column named "DOY".

dates

Character vector containing the DOY to remove from the data frame.

Details

This function is primarely used to remove days for which Tmax is too extreme.

Value

Return the inputed data frame without the date corresponding the the "dates" argument.

Examples

1
2
3
4
5
6
DOY = c(rep(102, times=10), rep(103, times=10))
ID = c(rep("A", times=5), rep("B", times=5), rep("A", times=5), rep("B", times=5))
Tmax = c(rep(2.5, times=5), rep(2.7, times=5), rep(3.2, times=5), rep(3.4, times=5))
df <- data.frame(DOY, ID, Tmax)
dates = c("103")
remove.fun(df=df, dates=dates) 

TDPanalysis documentation built on Feb. 28, 2020, 9:09 a.m.