Re: [R] problems with reshape

2009-09-14 Thread Schalk Heunis
Some hints:The reshape works on the small set of data provided. The answer looks like this: > reshape(rl, idvar=c("sil_cf","sil_pi"), timevar="prog", direction="wide") sil_pi sil_cf id_rl.1 sil_dat_avv.1 id_rl.2 sil_dat_avv.2 1 04567XX NLMDRE64A5XX 6382000-08-03

Re: [R] problems with reshape

2009-09-14 Thread Kevin Wright
You might have a look at the reshape __package__, which I generally find easier to use than the reshape function. Kevin Wright On Mon, Sep 14, 2009 at 9:41 AM, Luca Braglia wrote: > Hello * > > I would like to reshape wide the following dataset: > > > > rl <- read.dta("intermedi/rapporti_lavor

[R] problems with reshape

2009-09-14 Thread Luca Braglia
Hello * I would like to reshape wide the following dataset: > rl <- read.dta("intermedi/rapporti_lavoro.dta") > [c("id_rl","prog","sil_pi","sil_cf","sil_dat_avv")] > dim(rl) [1] 12964 5 > object.size(rl) 1194728 bytes > head(rl) id_rl prog sil_pi sil_cf sil_dat_avv 1 638