powered by
Helper function that calculates juvenile percentages in number and weight. Used internally by summarize_juveniles_by_group.
calculate_juvenile_statistics( frequencies, length_values, juvenile_limit = 12, a = 0.0012, b = 3.1242 )
Data frame with juvenile statistics.
Numeric vector of frequencies by length.
Numeric vector of corresponding lengths.
Length threshold for juveniles.
Coefficient of length-weight relationship.
Exponent of length-weight relationship.
frequencies <- c(10, 15, 25, 30, 20, 10) lengths <- c(8, 9, 10, 11, 12, 13) stats <- calculate_juvenile_statistics(frequencies, lengths)
Run the code above in your browser using DataLab