Displaying 1 result from an estimated 1 matches for "ebtch1".
Did you mean:
btch
2010 Aug 13
1
assign multiple variables at once
...ecies code listed for
each row of the data set. Example (row 14), the new variable YP Harvest would equal
90 (ECRL2) and WP Harvest would equal 0 (ECRL1), all other species code var's would
contain NA.
I hope I made this clear enough.
Thank you,
Mike
Current method: one line per species
EBTCH1.h$YP.H <- with(EBTCH1.h,ifelse(ESP1 %in% 'YP',ECRL1,ifelse(ESP2 %in% 'YP',ECRL2,
ifelse(ESP3 %in% 'YP',ECRL3,ifelse(ESP4 %in% 'YP',ECRL4,ifelse(ESP5 %in% 'YP',ECRL5,
ifelse(ESP6 %in% 'YP',ECRL6,ifelse(ESP7 %in% 'YP',ECRL7,ifelse(ESP8 %in% &...