RE: [R] hclust error

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Tue 20 Jul 2004 - 01:14:21 EST


This has been asked on R-help several times in the past.

The `dist' object for the data of that size would be:

> 32513*32512/2

[1] 528531328

To store a vector of that size in double precision (8 bytes), you'd need:

> 32513*32512/2*8/1024^2

[1] 4032.374

I.e., that's nearly 4 GB. Is your computer capable of doing that?

Andy

> From: Herman, David (NIH/NIMH)
>
> Hello,
> I'm trying to do a cluster analysis on a large
> data set. I
> tried it out with a smaller one first, but I got this error:
>
> > hc<-hclust(dist(x),"ave")
> Error: cannot allocate vector of size 4129151 Kb
>
> The data sample used (i.e. "x") is a numerical data set of
> size 32513 by 31
>
> Does anyone know how I can do this analysis? Is R capable of
> this data
> size?
> Ultimately I wanna do an analysis on a dataset of size 32513 by 220
>
>
> Thanks!
>
> dave
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 20 01:31:07 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:36:49 EST