[R] outer(-x, x, pmin) cannot allocate
Brahm, David
David.Brahm at geodecapital.com
Wed Dec 22 21:11:28 CET 2004
R> x <- 0. + 1:8000
R> y <- outer(-x, x, pmin)
Error: cannot allocate vector of size 1000000 Kb
Why does R need to allocate a gigabyte to create an 8000 x 8000 matrix?
It doesn't have any trouble with outer(-x, x, "+"). Thanks.
-- David Brahm (brahm at alum.mit.edu)
Version:
platform = i686-pc-linux-gnu
arch = i686
os = linux-gnu
system = i686, linux-gnu
status =
major = 2
minor = 0.1
year = 2004
month = 11
day = 15
language = R
More information about the R-help
mailing list