Learn R Programming

ricu (version 0.5.6)

secs: Utilities for difftime

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

secs(...)

mins(...)

hours(...)

days(...)

weeks(...)

Value

Vector valued time differences as difftime object.

Arguments

...

Numeric vector to coerce to base::difftime()

Examples

Run this code
hours(1L)
mins(NA_real_)
secs(1:10)
hours(numeric(0L))

Run the code above in your browser using DataLab