[R] vector extraction

2004-03-08 Thread Jens Hainmueller
Hello, I could need some help on this one: From the data.frame Test.dataset2 below (TSCS data for 151 countries.to.map for year 1973-95; each country.to.map is described by a unique code), I would like to extract a vector color that for each country.to.map takes on the value of dv (a categorical

RE: [R] vector extraction

2004-03-08 Thread Gabor Grothendieck
My understanding is that you want to extract the dv values for year 1980: color - with( Test.dataset2, dv[ year == 1980 ] ) --- Date: Mon, 8 Mar 2004 19:36:45 -0800 From: Jens Hainmueller [EMAIL PROTECTED] To: R-Help [EMAIL PROTECTED] Subject: [R] vector extraction Hello