Package: cohortflow 0.0.0.9009
cohortflow: Define and Apply Cohort Inclusion/Exclusion Criteria
Define inclusion and exclusion criteria for cohort studies using formulas or functions, apply them to data, and render the resulting attrition flow as CONSORT flow diagrams, tables, or narrative text. Supports hierarchical designs (participants nested in clusters/sites) and flexible grouping for reporting. Criteria pipelines can be serialised to YAML for reproducibility and sharing. Parts of this package were developed with the assistance of GitHub Copilot (powered by Claude), an AI coding assistant.
Authors:
cohortflow_0.0.0.9009.tar.gz
cohortflow_0.0.0.9009.zip(r-4.7)cohortflow_0.0.0.9009.zip(r-4.6)cohortflow_0.0.0.9009.zip(r-4.5)
cohortflow_0.0.0.9009.tgz(r-4.6-any)cohortflow_0.0.0.9009.tgz(r-4.5-any)
cohortflow_0.0.0.9009.tar.gz(r-4.7-any)cohortflow_0.0.0.9009.tar.gz(r-4.6-any)
cohortflow_0.0.0.9009.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
cohortflow/json (API)
| # Install 'cohortflow' in R: |
| install.packages('cohortflow', repos = c('https://mattmoo.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/mattmoo/cohortflow/issues
Last updated from:1d02d1087d. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 136 | ||
| source / vignettes | OK | 147 | ||
| linux-release-x86_64 | OK | 137 | ||
| macos-release-arm64 | OK | 89 | ||
| macos-oldrel-arm64 | OK | 113 | ||
| windows-devel | OK | 80 | ||
| windows-release | OK | 80 | ||
| windows-oldrel | OK | 73 | ||
| wasm-release | OK | 115 |
Exports:apply_criteriaas_attrition_tableas_attrition_tibblecf_criteriacf_criterioncf_hierarchycohortexcludeexcludedexport_criteriagroup_excludegroup_includeimport_criteriaincludemock_cohortflowselect_within
Dependencies:clidplyrgenericsgluelifecyclemagrittrpillarpkgconfigR6rlangtibbletidyselectutf8vctrswithryaml
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Apply a criteria pipeline to a data frame | apply_criteria |
| Format an attrition table from a cohort flow object | as_attrition_table |
| Build an attrition tibble from a cohort flow object | as_attrition_tibble |
| Create an eligibility criteria pipeline | cf_criteria |
| Create a single cohort criterion | cf_criterion |
| Declare the nesting hierarchy for a cohort | cf_hierarchy |
| Extract the surviving cohort from a flow object | cohort |
| Add an exclusion criterion to a criteria pipeline | exclude |
| Extract excluded rows from a flow object | excluded |
| Serialises a 'cf_criteria' object to a human-readable YAML file (or string). The schema is self-describing and can be re-imported with 'import_criteria()'. | export_criteria |
| Add a group-level exclusion criterion | group_exclude |
| Add a group-level inclusion criterion | group_include |
| Import a criteria pipeline from YAML | import_criteria |
| Add an inclusion criterion to a criteria pipeline | include |
| Generate synthetic cohort data for testing and examples | mock_cohortflow |
| Select rows within groups | select_within |
