Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

difftime

Difftime utilities


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(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

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

ricu

Intensive Care Unit Data with R

v0.1.3
GPL-3
Authors
Nicolas Bennett [aut, cre], Drago Plecko [aut], Ida-Fong Ukor [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.