cohort_pull: Extract a cohort data frame

Description Usage Arguments Value Examples

View source: R/cohort_pull.R

Description

Pull a single tibble from a ggconsort_cohort object, often for downstream analysis or deeper inspection.

Usage

1
cohort_pull(.data, ...)

Arguments

.data

A ggconsort_cohort object

...

The cohort to pull as an unquoted expression

Value

A tibble for a single cohort

Examples

1
2
3
4
5
6
7
8
cohorts <- trial_data %>%
  cohort_start("Assessed for eligibility") %>%
    cohort_define(
      consented = .full %>% dplyr::filter(declined != 1),
      consented_chemonaive = consented %>% dplyr::filter(prior_chemo != 1)
    )

cohorts %>% cohort_pull(consented_chemonaive)

tgerke/ggconsort documentation built on Dec. 23, 2021, 8:49 a.m.