On Tue, May 19, 2009 at 11:59 PM, tsunhin wong <[email protected]> wrote:
> In order to save time, I am planning to generate a data set of size
> 1500 x 20000 with each data point a 9-digit decimal number, in order
> to save my time.
> I know R is limited to 2^31-1 and that my data set is not going to
> exceed this limit. But my laptop only has 2 Gb and is running 32-bit
> Windows / XP or Vista.
>
32-bit R on Windows XP with 2GB RAM has no problem with a matrix this size
(not just integers, but also numerics):
> system.time(mm <- matrix( numeric(1500 * 20000), 1500, 20000))
user system elapsed
0.59 0.23 1.87
> system.time(nn <- matrix( runif(1500 * 20000), 1500, 20000))
user system elapsed
2.66 0.64 13.39
> system.time(oo <- nn + 3)
user system elapsed
0.24 0.17 0.41
> system.time(pp <- oo - oo)
user system elapsed
0.15 0.13 0.28
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.