Description Usage Arguments Value Examples
View source: R/VarActionSearch_m2.R
This is a function that locates specific events (using the
actions.search
argument) and create new variables associate with this
strategy.
1 | VarActionSearch(data, action.var, actions.search)
|
data |
A |
action.var |
a vector with actions. See |
actions.search |
A character vector with the actions to be searched. |
This function returns a data.frame
with the frequency of each
specific events from the actions.search
argument and
"Freq.Actions.Search" summary.
1 2 3 | # Counting the instances of top_setting == 1
df <- m2$VarActionSearch(cp025q01.treated, "CP025Q01.ACTIONS", "1_apply")
table(df$freq.1_apply) # checking results
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.