[Rd] Problem with rnorm ?

2007-05-11 Thread Tong Wang
Hi, I couldn't get the rnorm() work right in C, for example, the following code produce strange results. #include #include int main(void){ double x[3]; for(int i=0;i<3;i++) x[i]=rnorm(0,1); printf("%lf,%lf,%lf",x[0],x[1],x[2]); return 0; } output : -8.773321,-8.773321,-8.77332

Re: [Rd] bounties

2007-05-11 Thread Ben Bolker
Tony Plate wrote: > I've wondered about this sort of thing too. Are there any successful > models like this for other program languages/systems? > > -- Tony Plate > > Ben Bolker wrote: >> Has anyone considered a bounty system for R? >> (i.e., some kind of system whereby users could put >> up m

[Rd] dump function and compatibility of .RData files between versions 2.4/2.5 and lower (PR#9676)

2007-05-11 Thread frederic . gosselin
Full_Name: frédéric Gosselin Version: 2.5 & 2.2.1 OS: windows XP pro Submission from: (NULL) (195.221.118.52) (i) I cannot read .Rdata saved with R2.5 with R2.2.1. I think it was the same with R2.4 vs R2.2.1. (ii) I have found the strange following problem, using the dump function: dump(ls(),"te

[Rd] changing the mode of a factor (PR#9675)

2007-05-11 Thread frederic . gosselin
Full_Name: Frédéric Gosselin Version: 2.5 vs 2.4 and 2.2.1 OS: windows XP Submission from: (NULL) (195.221.118.52) # L3 <- LETTERS[1:3] (d <- data.frame(cbind(x=1, y=1:10), fac=as.factor(sample(L3, 10, repl=TRUE mode(d[,3])<-"numeric" ### when trying to change the mo

Re: [Rd] bounties

2007-05-11 Thread Tony Plate
I've wondered about this sort of thing too. Are there any successful models like this for other program languages/systems? -- Tony Plate Ben Bolker wrote: > Has anyone considered a bounty system for R? > (i.e., some kind of system whereby users could put > up money to request particular impro

Re: [Rd] grep with fixed=TRUE and ignore.case=TRUE

2007-05-11 Thread Petr Savicky
On Wed, May 09, 2007 at 06:41:23AM +0100, Prof Brian Ripley wrote: > I suggest you collaborate with the person who replied that he thought this > was a good idea to supply patches against the R-devel sources for > scrutiny. A possible solution is to use strncasecmp instead of strncmp in function

[Rd] data.entry bugs

2007-05-11 Thread Juan Santiago Ramseyer
In session of R, occour following bug's in de (data.entry) function. *** caught segfault *** address 0x2c, cause 'memory not mapped' Traceback: 1: dataentry(odata, as.list(Modes)) 2: de(..., Modes = Modes, Names = Names) 3: data.entry(posto, fecha, serie = registros, status) 4: onEditaSeri