[R] Transforming relational data
mathijsdevaan
mathijsdevaan at gmail.com
Tue Feb 22 14:02:05 CET 2011
The output for the new example should be:
project v
1 0
2 0.5
3 1.5
4 0.5
The output you calculated was correct for the v per year, but the v per
group would be incorrect. I think the problem lies in the fact that
expand.grid(B,B) doesn't take into account that combinations of B can only
be formed within A. Thanks again!
--
View this message in context: http://r.789695.n4.nabble.com/Re-Transforming-relational-data-tp3307449p3319103.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list