[R] Subsetting year range

2012-10-31 Thread fuckecon
Hi, I have a panel data set that I am trying to subset. I am trying to keep values for years =1960. The full set is from 1940 to 2000. I tried a few things, but none worked. Here are a couple that I am trying to use. TableAPS1 - subset(TableAP, year = 1959) TableAPS1 - TableAP[ which(year

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

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, --

[R] keep average values and delete duplicate rows

2012-10-27 Thread fuckecon
Hello experts, I am sorry that my subject line is confusing, because I am confused as nuts. Let me take a shot at explaining what I am trying to do. I have a data set of log GDP, education, democracy index, and a whole bunch of variables for every country from 1950 to 2000. Each country