You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of making the covariate column name covariate_names, the covariate column name is covariate_data[rep(1, nrow(sample_data)), covariate_names. This leads to creation of duplicate covariate columns later on and then the rbind(DF_ip,DF_zp) fails. I think you need a statement like the following on the next line to name the covariate column(s) correctly:
I think this is already fixed on the development branch. Perhaps I should also push this to the main branch for now as a bug-fix (incrementing the last digit on the semantic version-number). I'll think about doing that in January and feel free to remind me then.
Thanks - I will use development for now. The result is that make_covariates is broken in the master branch. if you don't want to push as a hotfix to master, you could make the Remotes: field in the DESCRIPTION of VAST call the development branch of FishStatsUtils instead so those installing it as a VAST dependency get the fix.
on lines 39 of
make_covariates()
you have:Instead of making the covariate column name
covariate_names
, the covariate column name iscovariate_data[rep(1, nrow(sample_data)), covariate_names
. This leads to creation of duplicate covariate columns later on and then therbind(DF_ip,DF_zp)
fails. I think you need a statement like the following on the next line to name the covariate column(s) correctly:The text was updated successfully, but these errors were encountered: