weight_at_age_read: Read weight-at-age files from the disk and filter...

View source: R/weight_at_age-.R

weight_at_age_readR Documentation

Read weight-at-age files from the disk and filter appropriately

Description

Read the file using the appropriate method based on the file extension and filter the data such that data are not duplicated. For example, Canadian data are in the cumulative file but a better version was provided by Chris Grandin in 2022 as a csv file.

Usage

weight_at_age_read(file)

Arguments

file

The file path, full or relative, to the .csv file you are importing. The file should have the following seven columns: Source, Weight_kg, Sex, Age_yrs, Length_cm, Month, and Year.

Value

A data frame of weight-at-age information. The data frame includes the following columns:

  1. Source

  2. Weight_kg

  3. Sex

  4. Age_yrs

  5. Length_cm

  6. Month

  7. Year

  8. OutlierL

.

Author(s)

Ian G. Taylor

See Also

Other weight-at-age: weight_at_age_outlier()


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.