Re: [R] keep average values and delete duplicate rows

2012-10-28 Thread fuckecon
Hi Jeff, Sorry for the misunderstanding. I may have phrased my question as such, but my intention is really learn the workings of R. I am trying to replicate the results from an econometric paper in R, and I don't have any experience. I will reconsider my posts in the future. Regards, -- Vie

Re: [R] keep average values and delete duplicate rows

2012-10-28 Thread fuckecon
Hi Arun, Thanks for replying. Sorry I didn't list it, I do have democracy index in my dataset. The full set includes these columns: Country Code (3 letter abbreviation) Country Education Freedom house demo index log population log real gdp nominal savings polity demo index year (5 yr interval:

Re: [R] keep average values and delete duplicate rows

2012-10-27 Thread arun
HI, I guess it is a bit confusing as to what you want.  In the example dataset, there was no democracy_index, but in the result you want it.  Regarding the median calculation, I guess you want to calculate the median for each country.  I created one more country (China) with fake data.  May b

Re: [R] keep average values and delete duplicate rows

2012-10-27 Thread Jeff Newmiller
Please read the posting guide... this is not a homework help line. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...