Skip to contents

A pr_dataset is a collection of pr_trial objects with shared grouping metadata, intended for batch analysis.

Usage

pr_dataset(trials, group_var = "condition", name = "dataset")

Arguments

trials

A list of pr_trial objects.

group_var

Character. Name of the metadata field to use as the grouping variable. Default "condition".

name

Character. Name of the dataset. Default "dataset".

Value

A pr_dataset S3 object.

Examples

t1 <- pr_example_trial("insole", seed = 1)
t2 <- pr_example_trial("insole", seed = 2)
ds <- pr_dataset(list(t1, t2))
print(ds)
#> 
#> ── pr_dataset: dataset ─────────────────────────────────────────────────────────
#> • Trials: 2
#> • Subjects: "EX01"
#> • Conditions: "walking"
#> • Layouts: "insole_standard"