Skip to contents

Convert one CSV into standardized mmviz schema

Usage

convert_mmviz_csv(
  path,
  out_path = NULL,
  task = c("watermaze", "minefield"),
  overwrite = FALSE,
  include_optional = TRUE,
  keep_extra = FALSE,
  subject_id = NULL,
  group = NULL,
  trial_id = NULL
)

Arguments

path

Input CSV file path (legacy or standard).

out_path

Output CSV file path. Defaults to <input_stem>_standard.csv.

task

One of watermaze or minefield.

overwrite

Whether to overwrite an existing output file.

include_optional

Whether to include optional columns (time_sec, event) when present.

keep_extra

Whether to keep extra non-schema columns in output.

subject_id

Optional override for all rows.

group

Optional override for all rows.

trial_id

Optional override for all rows.

Value

A one-row data frame with conversion metadata.