Here is my proposition for checking that the data has the right frequency before calculating the corresponding stats. For example, if the minimal difference between two consecutive points is less or equal than 1 day (or strictly less than 2 days) this avoids to get misleading daily statistics.
Same for monthly and yearly figures being calculated only if the minimal difference between two consecutive points is 32 days and 367 days respectively.
Hello,
Here is my proposition for checking that the data has the right frequency before calculating the corresponding stats. For example, if the minimal difference between two consecutive points is less or equal than 1 day (or strictly less than 2 days) this avoids to get misleading daily statistics. Same for monthly and yearly figures being calculated only if the minimal difference between two consecutive points is 32 days and 367 days respectively.