Mousetracker to mousetrap import warnings and errors
I'm collaborating with someone that used Freeman's mousetracker and I am trying to process their data in R using mousetrap. I've wrangled their data to match mousetrap's desired structure. The xpos, ypos, and timestamp vectors are character vectors that look like: [x1, x2, x3...x90], [y1, y2, y3...y90], [t1, t2, t3...t90].
When I use mt_import_mousetrap, I get warnings that I don't understand:
# Warning messages: # 1: In FUN(newX[, i], ...) : NAs introduced by coercion.
If I press on passed the warnings with mt_remap_symmetric, I get another error:
# Error in if ((remap_xpos == "left" & trajectories[i, nlogs, xpos] > 0) | : # missing value where TRUE/FALSE needed
And then, no surprise, mt_measures spits out an error:
# Error in points[1, ] : incorrect number of dimensions
Thank you for your help!