FR {selectapref} | R Documentation |
Returns forage ratio from vectors of consumed and available food items.
FR(available, consumed)
available |
A vector of food items available to the organism in the environment |
consumed |
A vector of food items consumed by the organism |
availableprey <- c(10,10,10,10,10)
consumedprey <- c(9,0,0,1,5)
FR(available = availableprey, consumed = consumedprey)