Re: [R] Newbie question on subsets

2008-01-20 Thread Bill.Venables
Bill Venables. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Trubisz Sent: Sunday, 20 January 2008 1:12 PM To: R-help@r-project.org Subject: [R] Newbie question on subsets Hi... I'm working through the book, A Handbook of Statistical

Re: [R] Newbie question on subsets

2008-01-19 Thread jim holtman
Part of the problem is that 'country' is probably a factor and you will get all the levels that were in the original factor in the new subset. Try the following that will remove the extra levels in the factor: my.subset <- subset(Forbes2000, country %in% c("United Kin

[R] Newbie question on subsets

2008-01-19 Thread Joe Trubisz
Hi... I'm working through the book, A Handbook of Statistical Analyses using R by Everitt, and I'm trying to do the following (p. 19 of his book): boxplot(log(marketvalue)~country, data = subset(Forbes2000, country %in% c("United Kingdom","Germany","India","T