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

stay_windows

Stays


Description

Building on functionality offered by the (internal) function id_map(), stay windows as well as (in case of differing values being passed as id_type and win_type) an ID mapping is computed.

Usage

stay_windows(
  x,
  id_type = "icustay",
  win_type = id_type,
  in_time = "start",
  out_time = "end",
  interval = hours(1L)
)

Arguments

x

Passed to as_id_cfg() and as_src_env()

id_type

Type of ID all returned times are relative to

win_type

Type of ID for which the in/out times is returned

in_time, out_time

column names of the returned in/out times

interval

The time interval used to discretize time stamps with, specified as base::difftime() object

Value

An id_tbl containing the selected IDs and depending on values passed as in_time and out_time, start and end times of the ID passed as win_var.

See Also

change_id


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.