Description Usage Arguments Value Examples
View source: R/select_timeperiod.R
Helper function: select timeperiod
1 2 3 4 5 6 | select_timeperiod(
df,
date_start,
date_end = as.Date(date_start) + 365.25,
col_date = "date"
)
|
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") |
data frame with selected dates
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.