Learn R Programming

WARDEN (version 1.2.1)

extract_from_reactions: Extract all items and events and their interactions from the event reactions list

Description

Extract all items and events and their interactions from the event reactions list

Usage

extract_from_reactions(reactions)

Value

A data.frame with the relevant item/event, the event where it's assigned, and whether it's contained within a conditional statement

Arguments

reactions

list generated through add_reactevt

Examples

Run this code
evt_react_list2 <-
  add_reactevt(name_evt = "sick",
               input = {modify_item(list(a=1+5/3))
                 assign("W", 5 + 3 / 6 )
                 x[5] <- 18
                 for(i in 1:5){
                   assign(paste0("x_",i),5+3)
                 }
                 if(j == TRUE){
                   y[["w"]] <- 612-31+3
                 }#'                
                 q_default <- 0
                 c_default <- 0
                 curtime   <- Inf
                 d <- c <- k <- 67
               })
   
 extract_from_reactions(evt_react_list2)


Run the code above in your browser using DataLab