get_phases: Get Task Phases

Description Usage Arguments Value Examples

View source: R/funcs_phases.R

Description

This function takes the data column from the output of read_prpt and separates the three phases of the task, saving them to the environment phrase, which is initialized behind the scenes. It also separates the initial icon rating phase and the final icon rating phase. This function must be run in order to use the other functions that parse the choice data. If it is not, the phases will need to be isolated by hand and assigned to the phase environment (or local/global variables). See the Details section for more on how to access the three phases.

Usage

1
get_phases(data, final_icon_rating = FALSE)

Arguments

data

The data output from read_prpt

final_icon_rating

LOGICAL: FALSE by default for the majority of PRPT tasks that don't ask for final icon ratings. TRUE, and the phases will return those trials

Value

A list of data for each phase in the PRPT task.

Examples

1
2
3
4
5
phase_info <- get_phases(sample_data)

# Print different phase information by indexing into the object.
# Phase three can be accessed as follows, for example:
phase_info$phaseThree

jdtrat/pRpt documentation built on June 18, 2021, 11:17 p.m.