I'm getting weird results when I try to simulate a bunch of normal variates. I have enough memory to hold these.
N <- 2000
h1 <- 1000 * (1 - 0.9)
length(rnorm(N*h1,0,1)) == N*h1
[1] FALSE
>length(rnorm(3,0,1)) == 3
[1] TRUE
I hate R
CURIOSER AND CURIOSER:
> N<-2000
> h1 <- 100
> length(rnorm(N*h1))
[1] 200000
> h1 <- 1000 * (1 - 0.9)
> length(rnorm(N*h1))
[1] 199999
> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.3 LTS
locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     
other attached packages:
[1] colorout_1.1-1
loaded via a namespace (and not attached):
[1] tools_3.2.3
nothing in my .Rprofile except:
library(colorout)
wideScreen <- function(howWide=Sys.getenv("COLUMNS")) {
    options(width=as.integer(howWide))
}
