Pick a window of dates from a chronogram: with respect to visits.
cg_window_by_visit.Rd
This is a special case of cg_window_by_episode()
. It treats the
visit column as an episode, with the argument episode_handling = "all"
.
Examples
data("built_smallstudy")
cg <- built_smallstudy$chronogram
SevenDaysAfterEachStudyVisit <- cg_window_by_visit(
cg,
visit_col = serum_Ab_S, 7, 7
)