Anesrake error: "Error in targetvec - dat: non-numeric argument to binary operator"

No representative data means the issue has to be reverse engineered, which is a deterrent to helpful answers. It doesn't have to be all the data or even your data, just enough data in the same form to reproduce the issue.

See the FAQ: How to do a minimal reproducible example reprex for beginners