search for: ecrl2

Displaying 2 results from an estimated 2 matches for "ecrl2".

Did you mean: ecrl1
2010 Aug 13
1
assign multiple variables at once
...sted, and so on through ESP9 and ECRL9. What I want to do is create 26 new variables (one for each unique species code) that contains the number harvested (ECRL) for each corresponding species 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(ES...
2011 Feb 04
1
read.table error
...L, 0L, 2L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 130L, 5L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 0L, 2L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 100L, 0L, 0L, 0L, 0L, 0L), ECRL2 = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 4L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 25L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 6L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 2L, 0L, 5L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L...