search for: limanda

Displaying 1 result from an estimated 1 matches for "limanda".

Did you mean: amanda
2012 May 19
4
weighted averages for two variables
Hi R users, I have a dataset with multiple variables and i'm trying to weigh average depths for fish species per year by their abundance (CPUE. I have tried the weighted.mean function but as i have two columns for the x value the lenghts differ with the w (CPUE). How do I solve this problem? So far I have tried this: data<-by(allspecies, list(allspecies$Depth, allspecies$Year),