select_timeperiod: Helper function: select timeperiod

Description Usage Arguments Value Examples

View source: R/select_timeperiod.R

Description

Helper function: select timeperiod

Usage

1
2
3
4
5
6
select_timeperiod(
  df,
  date_start,
  date_end = as.Date(date_start) + 365.25,
  col_date = "date"
)

Arguments

df

data frame with date (defined in parameter "col_date)

date_start

start date of selection

date_end

end date of selection. If no value is given 365.25 days after "date_start" will be used (default: as.Date(date_start) + 365.25)

col_date

column for dates (default: "date")

Value

data frame with selected dates

Examples

1
2
3
4
5
path <- kwb.heatsine::extdata_file("temperature_groundwater_Txxxx3.csv")
gw_data <- kwb.heatsine::load_temperature_from_csv(path)
gw_data_selected <- kwb.heatsine::select_timeperiod(gw_data,
date_start = "2015-12-28", date_end = "2016-12-26")
gw_data_selected

KWB-R/kwb.heatsine documentation built on Oct. 22, 2020, 12:37 a.m.