Cameron Assuming DIST_TOW is a vector of the same length as effort and Gear, is this what you mean?
effort[Gear==300] = DIST_TOW[Gear==300]*7412 MHP on 11/21/2005 10:44 AM Guenther, Cameron said the following: >I am trying to great a new column of effort data from an existing vector >of gears used. >It is a simple code where > >effort[Gear==300]=(DIST_TOW*7412) >effort[Gear==301]=(DIST_TOW*7412) > >[...] > > -- Michael Prager, Ph.D. Population Dynamics Team, NMFS SE Fisheries Science Center NOAA Center for Coastal Fisheries and Habitat Research Beaufort, North Carolina 28516 http://shrimp.ccfhrb.noaa.gov/~mprager/ Opinions expressed are personal, not official. No government endorsement of any product is made or implied. ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html