Re: [Rd] \VignetteKeywords{}, for KEYWORDS or for free-tagging?

2011-01-05 Thread Elliot Todd Kleiman
Hi Kurt, Thank you very much for clarifying this. I hope that some documentation may be written about these commands and added to one of the manuals in the future. + Elliot On Wed, 5 Jan 2011, Kurt Hornik wrote: Elliot Todd Kleiman writes: Hi Kurt, Thank you for the info! However, I w

Re: [Rd] scoping/non-standard evaluation issue

2011-01-05 Thread John Fox
Dear Peter, You hit the nail on the head: I didn't (and don't) understand why mod.1 works -- which I attributed to my imperfect understanding of non-standard evaluation. Even if there's a bug allowing mod.1 to work, I wonder about the consequences of fixing it. That might break a lot of code. It w

Re: [Rd] scoping/non-standard evaluation issue

2011-01-05 Thread peter dalgaard
On Jan 5, 2011, at 14:44 , John Fox wrote: > Dear Gabor, > > I used str() to look at the two objects but missed the difference that you > found. What I didn't quite understand was why one model worked but not the > other when both were defined at the command prompt in the global > environment.

Re: [Rd] Minimum of an ordered factor

2011-01-05 Thread Martin Maechler
> Thaler, Thorn, LAUSANNE, Applied Mathematics > > on Wed, 5 Jan 2011 11:20:47 +0100 writes: > Hi everybody, Is there a particular reason, why this code > does not work as intended: > z <- factor(LETTERS[1:3], ordered = TRUE) > u <- 4:6 > min(z[u > 4]) >

Re: [Rd] scoping/non-standard evaluation issue

2011-01-05 Thread John Fox
Dear Gabor, I used str() to look at the two objects but missed the difference that you found. What I didn't quite understand was why one model worked but not the other when both were defined at the command prompt in the global environment. Thanks, John John Fox

Re: [Rd] scoping/non-standard evaluation issue

2011-01-05 Thread John Fox
Dear Peter, I played around a bit with your suggestion but wasn't able to get it to work. Thanks for this. John John Fox Senator William McMaster Professor of Social Statistics Department of Sociology McMaster University Hamilton, Ontario, Canada web: socser

[Rd] Minimum of an ordered factor

2011-01-05 Thread Thaler, Thorn, LAUSANNE, Applied Mathematics
Hi everybody, Is there a particular reason, why this code does not work as intended: z <- factor(LETTERS[1:3], ordered = TRUE) u <- 4:6 min(z[u > 4]) Error in Summary.factor(2:3, na.rm = FALSE) : min not meaningful for factors I agree that min is indeed not meaningful for not