get_event_list: Getting the workflow data from a single participation

get_event_listR Documentation

Getting the workflow data from a single participation

Description

Takes the log data from a single participation and returns a list describing the workflow.

Usage

get_event_list(
  json_data,
  project_modules,
  scenario_elements,
  questionnaire_elements,
  aggregate_duplicate_events = FALSE,
  idle_time,
  event_codes = lucar::event_codes,
  tool_codes = lucar::tool_codes,
  debug_mode = FALSE
)

Arguments

json_data

The log data for a single participation in form of a nested list

project_modules

Dataframe including the running numbers and ids for the project modules

scenario_elements

Dataframe including the codes for all existing scenario elements, which are used in the event list.

questionnaire_elements

Dataframe including the codes for all questionnaire elements, which are used in the event list as well as in the summary results.

aggregate_duplicate_events

If TRUE duplicate events occurring directly after each other are aggregated.

idle_time

Numeric describing after how many seconds an event is considered as idle.

event_codes

Dataframe with the event codes that are used to structure the log data

tool_codes

Dataframe with the tool codes that are used to assign each used tool to a common code

debug_mode

If TRUE the internal hash IDs for the project elements and additional lower level data are included

Value

A list including the workflow data

Examples

## Not run: 
json_file = "participation_logdata.json"
json_data <- rjson::fromJSON(file=json_file)
workflow <- get_workflow(json_data)

## End(Not run)


LucaOffice/lucar documentation built on Dec. 5, 2023, 5:14 a.m.