Re: [R] Calculating Distance Metrics using Euclidean

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue, 19 Feb 2008 13:13:22 +0000 (GMT)

On Tue, 19 Feb 2008, Keizer_71 wrote:

>
> I am trying to calculate the distance metrics, but i keep getting this error.
> I am very new to R. Am i doing something wrong.

Cross-posting: see the thread at

https://stat.ethz.ch/pipermail/r-devel/2008-February/048452.html

where your question has already been answered.

>
>
>> 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/Calculating-Distance-Metrics-using-Euclidean-tp15560521p15560521.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_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.
>

-- 
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

______________________________________________
R-help_at_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.
Received on Tue 19 Feb 2008 - 13:15:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 19 Feb 2008 - 13:30:16 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive