mt_exclude_initiation(data, use = "trajectories", save_as = use, reset_timestamps = TRUE, show_progress = TRUE)use will be ignored).data, only the trajectory array will be
returned.
mt_exclude_initiation removes all samples (x- and y-positions as well
as timestamps) at the beginning of the trial during which the mouse was not
moved from its initial position. The last unchanged sample is retained in the
data.If reset_timestamps == TRUE (the default), it subtracts the last
timestamp before a movement occurs from all timestamps , so that the series
of timestamps once more begin with zero. If the argument is set to
FALSE, the values of the timestamps are unchanged.
Please note that resetting the timestamps will result in changes in several
mouse-tracking measures, notably those which report timestamps (e.g.,
MAD_time). Typically, however, these changes are desired when using
this function.
mt_example <- mt_exclude_initiation(mt_example,
save_as="mod_trajectories")
Run the code above in your browser using DataLab