View source: R/utils-canada-create-age-proportions-csv.R
canada_create_age_proportions_csv | R Documentation |
Create an age proportion CSV data from the sample data
canada_create_age_proportions_csv(
d,
type = c("ft", "ss", "jv"),
min_date = as.Date("1972-01-01"),
raw_counts = FALSE,
plus_grp = 15,
lw_tol = 0.1,
lw_maxiter = 1000,
weight_scale = 1000,
by_month = FALSE,
digits = 5
)
d |
A data frame as returned by |
type |
The fleet type to create the file for. This is needed so the function knows what the filename should be for each fleet |
min_date |
Earliest date to include |
raw_counts |
Logical. If |
plus_grp |
Age plus group for maximum grouping |
lw_tol |
See |
lw_maxiter |
See |
weight_scale |
A value to divide the weights by |
by_month |
Logical. If |
digits |
The number of decimal places to round the values to |
A CSV file will be written, and the data frame will also be returned invisibly. The data frame will contain the year, number of fish by year in the data, and the number of samples (hauls/trips) in the data. Shoreside uses trips as a sampling unit and the other two use hauls.
The age proportion data frame, invisibly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.