Re: [Rd] solving nonlinear equations

2006-08-10 Thread Spencer Graves
Have you tried writing a function to compute SS = sum of squares deviations between the the left and right hand sides of your three equations, then using 'optim'? See also Venables and Ripley (2002) Modern Applied Statistics with S, 4th ed. (Springer). hope this helps.

Re: [Rd] unique.default() drops names (PR#9130)

2006-08-10 Thread Seth Falcon
Gregor Gorjanc [EMAIL PROTECTED] writes: Thank you for the reply! I appologize for not reading the latest documentation - there was no word about droping names in 2.3.1. However, I do wonder why simple fix (as shown in previous mail) is not OK. I see value in unique() keeping names and from

[Rd] BOD causes error in 2.4.0

2006-08-10 Thread Gabor Grothendieck
Using R version 2.4.0 Under development (unstable) (2006-08-08 r38825) on Windows XP and starting in a fresh session we get an error if we type BOD. (There is no error in Version 2.3.1 Patched (2006-06-04 r38279).) BOD Error in data.frame(Time = c(1, 2), demand = c( 8.3, 10.3), check.names =

Re: [Rd] sort() generic? [Re: Suspicious behaviour of sort on POSIXct ..]

2006-08-10 Thread Dannenberg, Alex
With all due respect, I don't think that the change to the sort function is a good change. New versions should be backward compatible whenever possible, i.e. unless there's a very compelling reason to force large amounts of old code to break. In this case, the sort function could have had an

[Rd] S4 Classes

2006-08-10 Thread Daniel Gerlanc
Hello All, I'm trying to convince someone that they should transition a large project to use S4 instead of S3 classes. Does anyone have any good citations? Thanks! -- Dan Gerlanc -- Daniel Gerlanc Williams College '07 [[alternative HTML version deleted]]

[Rd] rownames() problem with 0-extent arrays (PR#9136)

2006-08-10 Thread richard_raubertas
[R 2.3.1 on Windows XP] Hello, The 'do.NULL=FALSE' option of 'rownames' and 'colnames' does not work as documented when the array has a 0-extent dimension: tmp - matrix(1:15, ncol=3, dimnames=list(letters[1:5], LETTERS[1:3])) rownames(tmp) # Fine rownames(tmp[0,,drop=FALSE]) # NULL (okay,

Re: [Rd] unique.default() drops names (PR#9130)

2006-08-10 Thread Gregor Gorjanc
Seth Falcon sfalcon at fhcrc.org writes: I see value in unique() keeping names and from what I understand the documentation could be changed to match I don't know if there are good reasons for dropping names from vectors. Given that unique is very commonly used, I think the way to make

Re: [Rd] S4 Classes

2006-08-10 Thread Gordon Smyth
Is there a capability that you would like for the package which could be achieved only if the package was transitioned to S4? If so, explain this to the author. If not, why ask them to change? Gordon [Rd] S4 Classes Daniel Gerlanc dgerlanc at gmail.com Thu Aug 10 23:37:15 CEST 2006 Hello All,

Re: [Rd] S4 Classes

2006-08-10 Thread Martin Morgan
Gordon Smyth [EMAIL PROTECTED] writes: Is there a capability that you would like for the package which could be achieved only if the package was transitioned to S4? If so, explain this to the author. If not, why ask them to change? 'achieved only if' sounds a bit strong. I've used S4