View source: R/write_test_data.R
write_test_data | R Documentation |
This function writes dummy data that is used in the "Introduction" vignette
write_test_data( nyears, ewaa_vector = NULL, catch_index_v = NULL, survey_index_v = NULL, catch_comp_csv = NULL, survey_comp_csv = NULL )
nyears |
scalar, number of years in the model |
ewaa_vector |
vector of empirical weight-at-age, length nyears * nages |
catch_index_v |
list with two entries, one named "values" and one named "errors" corresponding to catch, each list entry has length nyears |
survey_index_v |
list with two entries, one named "values" and one named "errors" corresponding to index, each list entry has length nyears |
catch_comp_csv |
a string with the name of the .csv file containing the catch age composition data, if NULL (the default) dummy data are used |
survey_comp_csv |
a string with the name of the .csv file containing the survey age composition data, if NULL (the default) dummy data are used |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.