episode_select_participants | R Documentation |
Select participants based on a list of rules
episode_select_participants(weekly, intake, rules)
weekly |
weekly data.frame weekly data |
intake |
intake data.frame intake data |
rules |
list of rule definition (see details) |
Each rule is a element of the list using 3 forms
One character value, the name of the rule (without parameters)
a named list element, rule name as name, parameters as values (single value or list of named parameters)
a anonymous element, rule name is given in the 'name' entry
Known rules:
Only participants with at least one intake
Only participants with at least one weekly
Participants with at least [value] survey during the season, one parameter as single int value
Participants with at least one survey before the given date, one parameter a date
Participants with at least one survey before the given date, one parameter a date
Participants with at least one survey between the given dates, "start" and "end" param are expected
Remove french overseas - french specific
data.frame() participants state for each rules, selections count at each step in attributes
Other episodes:
episode_build()
,
episode_compute()
,
episode_design()
,
episode_fusion()
,
episode_fusion.simple_strategy()
,
episode_fusion.worst_strategy()
,
episode_fusion_strategy()
,
episode_prepare_data()
,
episode_strategy()
rules = list(
"has.intake",
"has.weekly",
"min.survey"=3,
"has_before"="2019-01-01",
"has_between"=list(start="2019-01-02",end="2019-03-01")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.