search for: bioden

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

Did you mean: binden
2005 Nov 10
2
IF/Else
Hi, I am trying to write a for loop with if else statements to calculate biomass density estimates for different types of sampling gear. My code is: bmd=for (i in 1:length(Gear)){ if (Gear==20) {bioden=Biomass/141} else {if (Gear==23) {bioden=Biomass/68}} else {if (Gear==160) {bioden=Biomass/4120}} else {if (Gear==170) {bioden=Biomass/2210}} else {if (Gear==300) {bioden=Biomass/(DIST_TOW*4*1853)}} else {if (Gear==301) {bioden=Biomass/(DIST_TOW*4*1853)}} } The syntax that is returned is: > bm...