difftime: Utilities for 'difftime'

Description Usage Arguments Value Examples

Description

As base::difftime() vectors are used throughout ricu, a set of wrapper functions are exported for convenience of instantiation base::difftime() vectors with given time units.

Usage

1
2
3
4
5
6
7
8
9
secs(x)

mins(x)

hours(x)

days(x)

weeks(x)

Arguments

x

Numeric vector to coerce to base::difftime()

Value

Vector valued time differences as difftime object.

Examples

1
2
3
4
hours(1L)
mins(NA_real_)
secs(1:10)
hours(numeric(0L))

ricu documentation built on Oct. 7, 2021, 9:06 a.m.