calc_time: Prepare time values

View source: R/calculate_covariates_auxiliary.R

calc_timeR Documentation

Prepare time values

Description

Prepare the time values for covariate calculation based on type of time value.

Usage

calc_time(time, format)

Arguments

time

Time value

format

Type of time to return in the ⁠$time⁠ column. Can be "timeless" (ie. Ecoregions data), "date" (ie. NARR data), "hour" (ie. GEOS data), "year" (ie. SEDAC population data), or "yearmonth" (ie. TerraClimate data).

Value

a Date, POSIXt, or integer object based on ⁠format =⁠


amadeus documentation built on April 4, 2025, 12:21 a.m.