From ripley at stats.ox.ac.uk  Tue Feb 19 11:41:02 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 19 Feb 2008 10:41:02 +0000 (GMT)
Subject: [Rd] Distance Metrics using Euclidean
In-Reply-To: <15549109.post@talk.nabble.com>
References: <15549109.post@talk.nabble.com>
Message-ID: <alpine.LFD.1.00.0802191037060.14016@gannet.stats.ox.ac.uk>

Please ask help questions on R-help.

You are asking for a distance matrix of 10000 points. That has almost 100 
million entries, too large for your 1Gb computer (even if only half of it 
is stored).  What can you usefully do with such a matrix?

On Mon, 18 Feb 2008, Keizer_71 wrote:

>
> I am trying to calculate the distance metrics, but i keep getting this error.
> I am very new with R. Am i doing something wrong.
>
>
>> dim(data.sub)
> [1] 10000   140
>
>> dist(data.sub, method = "euclidean", diag = FALSE, upper = FALSE, p = 2)
> Error: cannot allocate vector of size 781250 Kb
> In addition: Warning messages:
> 1: Reached total allocation of 1014Mb: see help(memory.size)
> 2: Reached total allocation of 1014Mb: see help(memory.size)
> --
> View this message in context: http://www.nabble.com/Distance-Metrics-using-Euclidean-tp15549109p15549109.html
> Sent from the R devel mailing list archive at Nabble.com.
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Distance Metrics using Euclidean
Prof Brian Ripley