Learn R Programming

amadeus (version 1.2.2)

calc_time: Prepare time values

Description

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

Usage

calc_time(time, format)

Value

a Date, POSIXt, or integer object based on 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).