Get weight-at-age data and identify any outliers using three screening methods.

  • Data in September of 2003 are screened for fish less than 0.52 kg and greater than 45 cm in length.

  • Data are screen for a weight-length relationship beyond that deemed to be normal, i.e., 20e-6length^3 and 2e-6length^3.

  • Identify fish with a recorded age of greater than or equal to 99, which is sometimes used for data that should be flagged or not used instead of an NA value. These protocols started in 2011.

weight_at_age_outlier(data, filter = TRUE, drop = TRUE)

plot_weight_at_age_outlier(data, ...)

Arguments

data

A data frame of weight-at-age values.

filter

A logical specifying if the outliers should be removed or not. The default is to remove them.

drop

A logical specifying if the new column called outlier should be removed from the data frame prior to returning it.

Value

A data frame with the same columns or one more column, i.e., outlier, than the input data frame.

See also

Other weight-at-age: weight_at_age_read()

Other weight-at-age: weight_at_age_read()

Author

Kelli F. Johnson