View source: R/status_periods.R
status_periods | R Documentation |
Divides the entire assessment period as defined by year_range into shorter intervals based on the number of periods and codes the datetime values according to which interval they belong to.
status_periods(
datetime = NULL,
periods = 5,
year_range = NULL,
bins_only = FALSE
)
datetime |
Vector of datetimes in POSIXct format. |
periods |
Number of shorter intervals to divide the total assesment period into. Default is 4. |
year_range |
Vector of the minimum and maximum years that define the total assessment period. If NULL, the year range provided in datetime is used. |
bins_only |
If TRUE, will return a vector of the each unique character values that define the calendar year range for each assessment period. Default is FALSE. |
Vector of character values that define the calendar year range for each assessment period
status_periods(datetime = data_assessed$sample_datetime, periods=4, year_range = c(start_year:end_year))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.