Hi there,

I'm having a problem with as.dist when I tried to convert a numerical matrix to dist. The data matrix is 10^4 by 10^4. I got the following:

d <- as.dist(dat)
Error: cannot allocate vector of size 762.9Mb

I need convert "dat" to dist because I will use hclust to do some clustering analysis.

The machine is 2Gb memory 64bit Linux, and I also failed on a 16Gb memory 64bit Linux. Is there anyway that I can get around it? Or how large is the limitation on my machine? Thanks in advance.

Best,
Baoqiang

______________________________________________
R-help@r-project.org 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.

Reply via email to