Parse design data.frame
Value
A CalmrDesign object.
Note
Each entry in even-numbered columns of df is
a string formatted as per phase_parser()
.
Examples
df <- data.frame(
Group = c("Group 1", "Group 2"),
P1 = c("10AB(US)", "10A(US)"), R1 = c(TRUE, TRUE)
)
parse_design(df)
#> CalmrDesign built from data.frame:
#> Group P1 R1
#> 1 Group 1 10AB(US) TRUE
#> 2 Group 2 10A(US) TRUE
#> ----------------
#> Trials detected:
#> group phase trial_names trial_repeats is_test stimuli
#> 1 Group 1 P1 AB(US) 10 FALSE A;B;US
#> 2 Group 2 P1 A(US) 10 FALSE A;US