jsocolar / flocker

flexible occupancy estimation in R
Other
30 stars 3 forks source link

minor fix in predict_flocker #99

Closed SimonCMills closed 11 months ago

jsocolar commented 11 months ago

Hey @SimonCMills you're right that there's a small bug here, but the fix is more subtle than this. the object that we pass to get_Z, fitted_flocker etc needs to be a flocker_data object. So at the end of that if(mixed) block at line 71, we need to rebuild a flocker_data object to pass to the new_data argument. Minimally, this would be a one-element list with an element $data containing the data and the class set to flocker_data.

jsocolar commented 11 months ago

Superceded by https://github.com/jsocolar/flocker/pull/100