powered by
This is a function that locates specific events (using the actions.search argument) and create new variables associate with this strategy.
actions.search
VarActionSearch(data, action.var, actions.search)
This function returns a data.frame with the frequency of each specific events from the actions.search argument and "Freq.Actions.Search" summary.
data.frame
A matrix or data.frame where the 'action.var' variable is
matrix
a vector with actions. See DataActionsbyID function.
DataActionsbyID
A character vector with the actions to be searched.
# Counting the instances of top_setting == 1 df <- m2$VarActionSearch(cp025q01.treated, "CP025Q01.ACTIONS", "1_apply") table(df$freq.1_apply) # checking results
Run the code above in your browser using DataLab