search for: ecrl

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

Did you mean: earl
2010 Aug 13
1
assign multiple variables at once
R Experts, I would like to create a series of variables without having to assign a separate line of code for each new variable. My dataframe (DF) contains two groups of linked variables (ESP1:ESP9) and (ECRL1:ECRL9). Within ESP1:ESP9 are abbreviated species codes (full dataframe contains 26 codes). ECRL1 represents the number of species x in variable ESP1 harvested, 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 num...