Closed N-DucharmeBarth closed 4 years ago
Thanks Nicholas! After some back-and-forth, I have tested and pushed that proposed solution to the development branch of FishStatsUtils.
Nicholas -- could you run and do some sniff-tests for that push, and re-open the issue if you have anything to report?
Hi Jim, I've come across the following error in the make_covariates function.
The error is being thrown from the second rbind call in the function (line 70)
because
DF_ip
has4 + n
columns andDF_zp
has3+n
columns, wheren
is the number of covariates specified in thecovariate_data
function argument.The source of the error appears to stem from lines 39-40:
which creates a
4+n
columned data-frame with the namesYear, Lat, Lon, covariate_data[rep(1, nrow(sample_data)), covariate_names]
plus whatevercovariate_names
is.It looks like adding the following line
in-between lines 39 & 40 solves the problem but this should be checked.
For reference I'm using R version 3.6.1, FishStatsUtils version 2.3.4 and VAST version 3.2.2.