Learn R Programming

calmr (version 0.7.0)

phase_parser: Parses a phase string

Description

Parses a phase string

Usage

phase_parser(phase_string)

Value

A named list with:

trial_info:

A trial-named list of lists.

general_info:

General phase information.

Arguments

phase_string

A string specifying trials within a phase.

See Also

parse_design()

Examples

Run this code
# A silly (but valid) string
phase_parser("10#Rescorla>Wagner")

# An invalid string that needs trial repetitions for one of trials.
try(phase_parser("10#Rescorla/Wagner"))

Run the code above in your browser using DataLab