[R] Warning message help

Mike Prager Mike.Prager at noaa.gov
Mon Nov 21 19:19:35 CET 2005


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.




More information about the R-help mailing list