Package: cohortBuilder 0.3.0.9000
cohortBuilder: Data Source Agnostic Filtering Tools
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.
Authors:
cohortBuilder_0.3.0.9000.tar.gz
cohortBuilder_0.3.0.9000.zip(r-4.5)cohortBuilder_0.3.0.9000.zip(r-4.4)cohortBuilder_0.3.0.9000.zip(r-4.3)
cohortBuilder_0.3.0.9000.tgz(r-4.4-any)cohortBuilder_0.3.0.9000.tgz(r-4.3-any)
cohortBuilder_0.3.0.9000.tar.gz(r-4.5-noble)cohortBuilder_0.3.0.9000.tar.gz(r-4.4-noble)
cohortBuilder_0.3.0.9000.tgz(r-4.4-emscripten)cohortBuilder_0.3.0.9000.tgz(r-4.3-emscripten)
cohortBuilder.pdf |cohortBuilder.html✨
cohortBuilder/json (API)
NEWS
# Install 'cohortBuilder' in R: |
install.packages('cohortBuilder', repos = c('https://r-world-devs.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/r-world-devs/cohortbuilder/issues
- librarian - Sample of library database
Last updated 19 days agofrom:8011488119. Checks:OK: 1 ERROR: 6. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 04 2024 |
R-4.5-win | ERROR | Nov 04 2024 |
R-4.5-linux | ERROR | Nov 04 2024 |
R-4.4-win | ERROR | Nov 04 2024 |
R-4.4-mac | ERROR | Nov 04 2024 |
R-4.3-win | ERROR | Nov 04 2024 |
R-4.3-mac | ERROR | Nov 04 2024 |
Exports:.as_constructor.collect_data.gen_id.get_attrition_count.get_attrition_label.get_item.get_method.get_stats.if_value.init_step.post_binding.post_filtering.pre_filtering.print_filter.repro_code_tweak.run_binding%->%add_filteradd_hookadd_sourceadd_stepas.tblistattritionbind_keybind_keyscb_filter.date_rangecb_filter.datetime_rangecb_filter.discretecb_filter.discrete_textcb_filter.multi_discretecb_filter.querycb_filter.rangecodecohortdata_keydef_filterdescriptionfilterget_dataget_hookget_statenew_filterplot_dataprimary_keysrestorerm_filterrm_steprunset_sourceSourcestatstepsum_uptblistupdate_filterupdate_source
Dependencies:clicolorspacecpp11dplyrfansifarverformatRgenericsggplot2gluegtableisobandjsonlitelabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigpurrrR6RColorBrewerrlangscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr
Implementing custom filters
Rendered fromcustom-filters.Rmd
usingknitr::rmarkdown
on Nov 04 2024.Last update: 2024-11-04
Started: 2022-05-22
Introduction to cohortBuilder
Rendered fromcohortBuilder.Rmd
usingknitr::rmarkdown
on Nov 04 2024.Last update: 2023-03-01
Started: 2022-05-22
Managing Cohort Object
Rendered frommanaging-cohort.Rmd
usingknitr::rmarkdown
on Nov 04 2024.Last update: 2023-03-01
Started: 2022-05-22
Specifying data relations with Binding Keys
Rendered frombinding-keys.Rmd
usingknitr::rmarkdown
on Nov 04 2024.Last update: 2022-05-22
Started: 2022-05-22
Variants for Cohort Configuration
Rendered fromcohort-configuration.Rmd
usingknitr::rmarkdown
on Nov 04 2024.Last update: 2022-05-22
Started: 2022-05-22
Writing custom extensions
Rendered fromcustom-extensions.Rmd
usingknitr::rmarkdown
on Nov 04 2024.Last update: 2022-07-27
Started: 2022-05-22
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Create data source cohort | cohortBuilder-package |
Attach proper class to filter constructor | .as_constructor |
Generate random ID | .gen_id |
Return list of objects matching provided condition. | .get_item |
Get function definition | .get_method |
Return default value if values are equal | .if_value |
Method for printing filter details | .print_filter |
Operator simplifying adding steps or filters to Cohort and Source objects | %->% |
Add filter definition | add_filter add_filter.Cohort add_filter.Source |
Add source to Cohort object. | add_source |
Add filtering step definition | add_step add_step.Cohort add_step.Source |
Show attrition plot. | attrition |
Describe data relations with binding keys | binding-keys bind_key bind_keys |
Return reproducible data filtering code. | code |
R6 class representing Cohort object. | Cohort |
Cohort related methods | cohort-methods |
Create new 'Cohort' object | cohort create-cohort |
Define custom filter. | creating-filters def_filter new_filter |
Define Source dataset key | data_key |
Show source data or filter description | description |
Define Cohort filter | filter filter.character |
Filter Source types methods | cb_filter.datetime_range cb_filter.datetime_range.tblist cb_filter.date_range cb_filter.date_range.tblist cb_filter.discrete cb_filter.discrete.tblist cb_filter.discrete_text cb_filter.discrete_text.tblist cb_filter.multi_discrete cb_filter.multi_discrete.tblist cb_filter.query cb_filter.query.tblist cb_filter.range cb_filter.range.tblist filter-source-types |
Filter types | filter-types filter.datetime_range filter.date_range filter.discrete filter.discrete_text filter.multi_discrete filter.query filter.range |
Get step related data | get_data |
Get Cohort configuration state. | get_state |
Cohort hooks. | add_hook get_hook hooks |
Sample of library database | librarian |
Managing the Cohort object | managing-cohort |
Managing the Source object | managing-source |
Plot filter related Cohort data. | plot_data |
Define Source datasets primary keys | primary_keys |
Restore Cohort object. | restore |
Remove filter definition | rm_filter rm_filter.Cohort rm_filter.Source |
Remove filtering step definition | rm_step rm_step.Cohort rm_step.Source |
Trigger data calculations. | run |
Create Cohort source | set_source set_source.tblist |
R6 class representing a data source | Source |
Source compatibility methods. | .collect_data .collect_data.default .collect_data.tblist .get_attrition_count .get_attrition_count.default .get_attrition_label .get_attrition_label.default .get_stats .get_stats.default .get_stats.tblist .init_step .init_step.default .init_step.tblist .post_binding .post_binding.default .post_filtering .post_filtering.default .pre_filtering .pre_filtering.default .repro_code_tweak .run_binding .run_binding.default source-layer |
Get Cohort related statistics. | stat |
Create filtering step | step |
Sum up Cohort state. | sum_up |
Create in memory tables connection | as.tblist tblist |
Update filter definition | update_filter update_filter.Cohort update_filter.Source |
Update source in Cohort object. | update_source |