[R] Creating panel data

Jeff r at jp.pair.com
Tue Jul 24 02:27:28 CEST 2012


At 06:33 PM 7/23/2012, David Winsemius wrote:

>I didn't see a clear way to use either reshape() or the plyr/reshape2
>packages to do this, (but would enjoy seeing an example that improved
>my understanding on this path)  so I just looked at your "x" and then
>created a scaffold with the number of rows needed to match your "y"
>and filled in the the other columns by first merging to that scaffold
>and then creating new columns:


That did it!

Thanks

Jeff



More information about the R-help mailing list