Displaying 1 result from an estimated 1 matches for "one_year".
Did you mean:
inc_year
2008 Oct 29
1
Subsetting data in a loop
...etting my data. I am trying to divide a data frame into multiple data frames based on the year collected, and stored in a list with each new data frame labeled with "year X" where X is the year the data was collected. When I run my current code I get nine error messages stating
"In one_year[name] <- myear : number of items to replace is not a multiple of replacement length"What I have so far is:
Below is my code, the data frame mydat, and what I would like the final product to look like. I would appreciate any help or suggestions on what I am doing wrong.
Thanks,
Tim
one...