time_2_calendar_dates: Modify time to calendar years

View source: R/functions.R

time_2_calendar_datesR Documentation

Modify time to calendar years

Description

Modify a stars object to change the time dimension to calendar years between specified starting and ending years.

Usage

time_2_calendar_dates(data, y_start, y_end, by = "1 month")

Arguments

data

A stars object with the data to be modified.

y_start

A number with the starting year of the data (in calibrated Before Present format).

y_end

A number with the ending year of the data (in calibrated Before Present format).

by

A number or string specifying the interval of the dates to be used in the new stars object.

Value

A stars object as in data argument but with changed time dimension.

Examples

# TBW

dinilu/TraCErtools documentation built on March 19, 2022, 4:44 a.m.