Learn R Programming

LOGAN (version 1.0.1)

VarActionPosition: Identify the position of specific events in a variable of Actions

Description

This is a function that locates specific events (using the actions.search argument) and create new variables associate with this strategy.

Usage

VarActionPosition(data, action.var, actions.search)

Value

This function returns a data.frame with the frequency of each specific events from the actions.search argument and "Freq.Actions.Search" summary.

Arguments

data

A matrix or data.frame where the 'action.var' variable is

action.var

a vector with actions. See DataActionsbyID function.

actions.search

A character vector with the actions to be searched.