weighted_frequency <- function(length,frequency,a,b,catch){
weight <- (a*length^b)*frequency
freqW <- (catch/sum(weight))*weight
lengthW <- freqW/(a*length^b)
return(lengthW)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.