parse_design {calmr}R Documentation

Parse design data.frame

Description

Parse design data.frame

Usage

parse_design(df, model = NULL, ...)

Arguments

df

A data.frame of dimensions (groups) by (2*phases+1).

model

(Optional) model to augment the design.

...

Other arguments passed to augment function.

Value

A CalmrDesign object.

Note

Each entry in even-numbered columns of df is a string formatted as per phase_parser().

See Also

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)

[Package calmr version 0.6.1 Index]