Description Usage Arguments Value Examples
View source: R/summarise_daily.R
Summarise (sum or average) time series data at a daily scale
1 | summarise_daily(.data, .timevar, .cumul, .average)
|
.data |
a dataframe with the data to summarise |
.timevar |
unquoted name of the column with date-time data |
.cumul |
vector of unquoted name of columns with data to sum along each days |
.average |
vector of unquoted name of columns with data to average along each days |
a dataframe with the requested columns summarised at a daily scale
1 2 3 4 5 | library(dplyr)
library(lubridate)
dat <- meteoClermont %>%
mutate(date = ymd_hms(date))
summarise_daily(dat, date, precipitation, wind_dir:pres)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.