animalnexus / feedr

R package for working with data collected from RFID feeder visits
https://animalnexus.github.io/feedr/
2 stars 1 forks source link

Issue with move #10

Open imillercrews opened 9 months ago

imillercrews commented 9 months ago

I am having trouble running the move function. I think one issue is that when creating move_path it calls for the mp function which does not seem to exist. Is there possibly a library that I am missing?

The line where I have issues in the move function is:

move_path = unique(sapply(move_dir, FUN = mp))

and I get the error:

"Error in match.fun(FUN) : object 'mp' not found"

steffilazerte commented 9 months ago

Hi @imillercrews, nice to see you're using feedr!

Assuming you're using the package functions direction (i.e., move()) I'm not at all sure why you're running into that error as mp is an internal function in the feedr package.

If you could share the code you're trying to run, that would help, but unfortunately it will be a while before I have time to really look into this. feedr definitely needs a bit of housekeeping but I haven't had the time lately to do that.

imillercrews commented 8 months ago

I’m wondering if it has to do with impossible visits? Some of the loggers I’m working with reset the time and this caused a few impossible visits. When I removed those days it seemed to work?