[R] Error "grid must have equal distances in each direction"

maddy madhura1301 at gmail.com
Mon Mar 29 16:48:52 CEST 2010

Hello all,

I am trying to create a grid of large number of points 4096*4096, on
processing the data I am  writing it into a file.

phi <- 0.5
N <- 4096
mu <- 90

sim$data <- (sim$data - mean(sim$data)) / sd(sim$data)
local <- array(sim$data, dim=c(N,N))
sysvar <- local * sigma
P <- mu+sysvar

 I get the following message when I run it for 4096 points and last few
values of the data set appear 0

"different grid distances detected, but the grid must have equal distances
in each direction -- try gridtriple=TRUE that avoids numerical errors."

The program runs fine for less number of points.
I am not able to understand the error. Can anyone please help regarding

Also, the maximum memory for the R software is 1535MBytes [ obtained by
doing memory.limit(size=NA) ]
Sometime I get the out of memory error by doing this procedure.
Is it possible to increase the size of memory?
Thanks in advance.

-M. Joshi
View this message in context: http://n4.nabble.com/Error-grid-must-have-equal-distances-in-each-direction-tp1695189p1695189.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list