Re: [R] Filling missing data in a Panel

2014-02-20 Thread Francesca Pancotto
Thanks a lot, it works perfectly! f. -- Francesca Pancotto Università degli Studi di Modena e Reggio Emilia Palazzo Dossetti - Viale Allegri, 9 - 42121 Reggio Emilia Office: +39 0522 523264 Web: https://sites.google.com/site/francescapancotto/ ---

Re: [R] Filling missing data in a Panel

2014-02-17 Thread arun
Sorry, a typo: vec3 instead of vec2  dat3 <- data.frame(bank_name=vec3,p_for=rep(seq(18),length(unique(dat$bank_name A.K. On , arun wrote: Hi, Looks like one column name is missing.  I am not sure about the output you wanted.  May be this helps. dat <- read.table(text="row.names bank

Re: [R] Filling missing data in a Panel

2014-02-17 Thread arun
Hi, Looks like one column name is missing.  I am not sure about the output you wanted.  May be this helps. dat <- read.table(text="row.names bank_name  date px_last  Q_Y p_made q_made    p_for 1  2    1  11/30/06    1.31 p406-q406    406  406  1 2

[R] Filling missing data in a Panel

2014-02-16 Thread Francesca Pancotto
Dear R contributors, I have a problem with a database that at the moment I find hard to solve. I have a panel composed of n subjects, whose names in the table that I report is bank_name, and observations for each of the individuals of bank_name from 1 to 18, as reported from the column p_for.