Function to create a mesh, fit the sdmTMB model, and get the index. Exports fit.rds and index.rds files to the designated species folder. Learn more: https://github.com/pbs-assess/sdmTMB/

wrapper_sdmtmb(x, y, z, dir_spp, spp_info, n_knots = 300)

Arguments

x

speciesname_df[[i]] which is a data frame from a list of data frames created from the cleanup_by_species() function and any further post-processing of depth filters (see the smaller_function.R file for those).

y

speciesname_files[[i]] which is an item in a list created from

z

A dataframe with the new data to predict on.

dir_spp

A character string specifying the directory for output files.

spp_info

information about the species test run.

n_knots

Numeric. names(speciesname_df)

Examples

if (FALSE) { # \dontrun{
wrapper_sdmtmb()
} # }