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
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
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
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
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
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
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