cohortBuilder0.3.0 package

Data Source Agnostic Filtering Tools

add_filter

Add filter definition

add_source

Add source to Cohort object.

add_step

Add filtering step definition

attrition

Show attrition plot.

binding-keys

Describe data relations with binding keys

code

Return reproducible data filtering code.

cohort-methods

Cohort related methods

Cohort

R6 class representing Cohort object.

cohortBuilder-package

Create data source cohort

create-cohort

Create new 'Cohort' object

creating-filters

Define custom filter.

data_key

Define Source dataset key

description

Show source data or filter description

dot-as_constructor

Attach proper class to filter constructor

dot-gen_id

Generate random ID

dot-get_item

Return list of objects matching provided condition.

dot-get_method

Get function definition

dot-if_value

Return default value if values are equal

dot-print_filter

Method for printing filter details

filter-source-types

Filter Source types methods

filter-types

Filter types

filter

Define Cohort filter

get_data

Get step related data

get_state

Get Cohort configuration state.

grapes-greater-than-grapes

Operator simplifying adding steps or filters to Cohort and Source obje...

hooks

Cohort hooks.

managing-cohort

Managing the Cohort object

managing-source

Managing the Source object

plot_data

Plot filter related Cohort data.

primary_keys

Define Source datasets primary keys

restore

Restore Cohort object.

rm_filter

Remove filter definition

rm_step

Remove filtering step definition

run

Trigger data calculations.

set_source

Create Cohort source

source-layer

Source compatibility methods.

Source

R6 class representing a data source

stat

Get Cohort related statistics.

step

Create filtering step

sum_up

Sum up Cohort state.

tblist

Create in memory tables connection

update_filter

Update filter definition

update_source

Update source in Cohort object.

Common API for filtering data stored in different data models. Provides multiple filter types and reproducible R code. Works standalone or with 'shinyCohortBuilder' as the GUI for interactive Shiny apps.

  • Maintainer: Krystian Igras
  • License: MIT + file LICENSE
  • Last published: 2024-09-25