updatePhase: Update the current phase of an examinee object

View source: R/examinee_updaters.R

updatePhaseR Documentation

Update the current phase of an examinee object

Description

updatePhase is a function for updating examinee objects after completing a module. updatePhase updates the phase by calling changePhase.

Usage

updatePhase(examinee_object, assessment_structure)

Arguments

examinee_object

an examinee object.

assessment_structure

an assessment_structure object.

Value

an examinee object with its current_phase slot updated.

Examples

## assessment uses two phases

examinee <- examinee_list_math[[1]]
examinee@current_phase ## P1

examinee <- updatePhase(examinee, assessment_structure_math)
examinee@current_phase ## P2

examinee <- updatePhase(examinee, assessment_structure_math)
examinee@current_phase ## P1


maat documentation built on May 18, 2022, 9:07 a.m.