powered by
Converts numerical length frequencies to weight estimates using length-weight relationship.
convert_numbers_to_weight(data, length_cols, a, b)
Data frame with original columns plus weight columns (prefixed with "weight_").
Data frame with length frequency columns.
Vector of length column names or numeric values.
Coefficient of the length-weight relationship.
Exponent of the length-weight relationship.
if (FALSE) { weight_data <- convert_numbers_to_weight( data = frequency_data, length_cols = c("8", "8.5", "9", "9.5", "10"), a = 0.0012, b = 3.1242 ) }
Run the code above in your browser using DataLab