Description Usage Arguments Value Author(s) See Also Examples
Calculate daily values (e.g mean or sum) from time series data. Allows to specify a subject to calculate daily values for several subjects.
1 |
data |
A data vector that you want to calculate the daily values for |
time |
Time stamps for data in POSIXct format |
fun |
The function to apply, defaults to sum |
subject |
You can optionally specify to a subject. e.g. to get daily values for each cow in a herd. |
A data.frame with following elements
Day |
Date |
Subject |
Appears only if you have specified a subject |
Result |
The result of the function |
Matti Pastell <matti.pastell@helsinki.fi>
1 2 3 4 5 6 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.