nctime: Convert numbers to time or convert time to numbers in nc...

Description Usage Arguments Value

Description

Convert numbers of netCDF time dimension style to R time series by providing units or Convert R time series to numbers and units of netCDF time dimension style.

Usage

1
2
3
time2num(time, since = time[1], freq = NULL, tz = "GMT")

num2time(val, units = NULL)

Arguments

time

R time or date series.

since

Time datum of the time series after converted to numbers. Default the first step of the time series.

freq

Time step of the time series. Could select a value when not provided.

tz

Time zone of the time series. Default UTC.

units

NetCDF time units for function num2time.

Value

A list including the numeric time series and the netCDF style time unit for function time2num, or an R time series for function num2time.


Sibada/sibadaR documentation built on Jan. 31, 2020, 6:40 p.m.