Creates a period table, i.e. a description of discrete periods during which land use can transition. This is necessary because a) land use data may not be available as regular time series and need to be assigned to such a form, and b) because this normalization helps consistency.
Usage
as_periods_t(x)
create_periods_t(
period_length_str = "P10Y",
start_observed = "1985-01-01",
end_observed = "2020-01-01",
end_extrapolated = "2060-01-01"
)
# S3 method for class 'periods_t'
print(x, nrow = 10, ...)Arguments
- x
A list or data.frame coercible to a data.table
- period_length_str
ISO 8601 duration string specifying the length of each period (currently only accepting years, e.g., "P5Y" for 5 years)
- start_observed
Start date of the observed data (YYYY-MM-DD)
- end_observed
End date of the observed data (YYYY-MM-DD)
- end_extrapolated
End date for extrapolation time range (YYYY-MM-DD)
- nrow
- ...
passed to data.table::print.data.table