- raw_data
a data.frame in long format, containing the raw data.
- xpos_label
a character string specifying the column containing the
x-positions.
- ypos_label
a character string specifying the column containing the
y-positions.
- zpos_label
an optional character string specifying the column
containing the z-positions.
- timestamps_label
a character string specifying the column containing
the timestamps. If no timestamps are found in the data, a timestamps
variable with increasing integers will be created (assuming equidistant
time steps).
- add_labels
a character vector specifying columns containing additional
mouse-tracking variables.
- mt_id_label
a character string (or vector) specifying the name of the
column that provides a unique ID for every trial (the trial identifier). If
more than one variable name is provided, a new ID variable will be created
by combining the values of each variable. The trial identifier will be set
as the rownames of the resulting trajectories and trial data, and
additionally be stored in the column "mt_id" in the trial data.
- mt_seq_label
a character string specifying the column that indicates
the order of the logged coordinates within a trial. If no column of the
specified name is found in the data.frame, the coordinates will be imported
in the order in which they were stored in raw_data
.
- reset_timestamps
logical indicating if the first timestamp should be
subtracted from all timestamps within a trial. Default is TRUE
as it
is recommended for all following analyses in mousetrap.
- verbose
logical indicating whether function should report its
progress.