[R] how to merge panel data stored by variable?

Stefan Grosse singularitaet at gmx.net
Wed Dec 10 17:05:38 CET 2008


> I have two datasets stored in tab-separated format in the following way
> file1:
> country           year1        year2
> Germany        var1          var1
> Hungary         var1          var1
>
> file2:
> country           year1        year2
> Germany        var2         var2
> Hungary         var2         var2
>
> I can easily read in these files, but how can I merge them as a panel
> dataset?
>
>   

?cbind
?rbind

hth
Stefan



More information about the R-help mailing list