lfi <- getProportionOfLargeFish(NS_sim, min_w = 10, max_w = 5000,
threshold_w = 500)
years <- c("1972", "2010")
lfi[years]
getProportionOfLargeFish(NS_sim)[years]
getProportionOfLargeFish(NS_sim, species=c("Herring","Sprat","N.pout"))[years]
getProportionOfLargeFish(NS_sim, min_w = 10, max_w = 5000)[years]
getProportionOfLargeFish(NS_sim, min_w = 10, max_w = 5000,
threshold_w = 500, biomass_proportion = FALSE)[years]
Run the code above in your browser using DataLab