get_event_list | R Documentation |
Takes the log data from a single participation and returns a list describing the workflow.
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
)
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 |
A list including the workflow data
## Not run:
json_file = "participation_logdata.json"
json_data <- rjson::fromJSON(file=json_file)
workflow <- get_workflow(json_data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.