Description Usage Arguments Value Examples

View source: R/aggregate_daily.R

Calculate daily sums or averages, e.g. from from hourly irradiation data.

1 | ```
aggregate_daily(time, y, basedate, FUN = sum)
``` |

`time` |
vector of POSIXct times |

`y` |
corresponding vector of data (e.g. hourly) |

`basedate` |
reference date where the series starts from, e.g., "1970-01-01 00:00.00 UTC" |

`FUN` |
function that is applied to the data of each day |

Data frame with the following columns:

- day
POSIXct time of the days

- y
vector of aggregated values

1 2 3 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.