Displaying 1 result from an estimated 1 matches for "yeari_1".
Did you mean:
yeari_2
2010 May 14
2
operations between two aggregated data frames?
...127 2004-03-06 4
6 125 2002-02-23 2
7 150 2002-05-18 4
8 19 2003-02-22 1
9 80 2000-08-05 1
10 94 2003-12-27 1
Within a loop, I'd do the following (i is my counter; for the example,
I set it to 1):
> i<-1
# Create the data frames:
> yeari_1 <- df1[which(df1['category']==i),]; yeari_2 <- df2[which(df2['category']==i),]
# Select only the data from category i
> yeari_1
A date category
7 117 2007-03-17 1
10 173 2005-08-27 1
> yeari_2
A date category
3 137 2003-01-11...