Skip to content
Prev 258135 / 398502 Next

Odp: calculations with vectors of unequal length

Hi


r-help-bounces at r-project.org napsal dne 27.04.2011 13:30:13:
merge(df.1,df.2, by.x="year", by.y="year", all.x=T)
  year level number.x number.y
1    1     a       11       21
2    1     a       17       21
3    1     a       14       21

than you can sum last 2 columns. I believe that sqldf package can do what 
you want more efficiently but I do not use it so I do not know exact 
syntax.

Regards
Petr
http://www.R-project.org/posting-guide.html