Skip to content

Commit

Permalink
fix(Table_for_SS3): Uses correct columns for SD
Browse files Browse the repository at this point in the history
Close #48 thanks to @chantelwetzel-noaa
  • Loading branch information
kellijohnson-NOAA committed Apr 21, 2022
1 parent f0c63b2 commit 3537e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/VAST_do.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ VAST_do <- function(Database, settings, conditiondir, compiledir,
Year = out$year_labels[index[["Table"]][, "Time"]],
Unit = index[["Table"]][, "Units"],
Fleet = index[["Table"]][, "Stratum"],
SD_log = index[["Table"]][, "Std. Error for Estimate"],
SD_mt = index[["Table"]][, "Std. Error for ln(Estimate)"]
# Go from kg to mt to keep backwards compatibility with VASTWestCoast
Estimate_metric_tons = index[["Table"]][, "Estimate"], / 1000
SD_log = index[["Table"]][, "Std. Error for ln(Estimate)"],
SD_mt = index[["Table"]][, "Std. Error for Estimate"]
)
utils::write.csv(x = indexdata, file = fileindex, row.names = FALSE)
plot_ss(file.in = fileindex,
Expand Down

0 comments on commit 3537e84

Please sign in to comment.