.period_to_minutes | R Documentation |
helper for data_coverage
.period_to_minutes(period, timestamp, timestep, ...)
period |
character indicating the period to summarise or a custom function name (without quotes). |
timestamp |
timestamp vector obtained from data |
timestep |
numeric with the timestep in minutes, obtained from metadata |
... |
extra arguments for period if it is a function |
This function converts the period supplied into minutes to use it in the coverage calculation.
An integer with the period value in minutes
# daily period, expected 1440 minutes sapfluxnetr:::.period_to_minutes('1 day') # Using a custom function, we need timestamp and timestep sapfluxnetr:::.period_to_minutes( lubridate::as_date, get_timestamp(ARG_TRE), 30 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.