Re: [R] Error on distance matrix

2008-01-14 Thread Gavin Simpson
On Mon, 2008-01-14 at 17:19 +0100, Martin Maechler wrote: > > "GS" == Gavin Simpson <[EMAIL PROTECTED]> > > on Thu, 10 Jan 2008 14:16:36 + writes: > > GS> On Thu, 2008-01-10 at 10:48 +, Marc Moragues wrote: > >> Hi, > >> > >> I am trying to calculate a distance

Re: [R] Error on distance matrix

2008-01-14 Thread Martin Maechler
> "GS" == Gavin Simpson <[EMAIL PROTECTED]> > on Thu, 10 Jan 2008 14:16:36 + writes: GS> On Thu, 2008-01-10 at 10:48 +, Marc Moragues wrote: >> Hi, >> >> I am trying to calculate a distance matrix on a binary >> data frame using dist.binary() {ade4}. This i

Re: [R] Error on distance matrix

2008-01-11 Thread Marc Moragues
Thanks for your help! It is working fine. Marc. -Original Message- From: Gavin Simpson [mailto:[EMAIL PROTECTED] Sent: 10 January 2008 14:17 To: Marc Moragues Cc: r-help@r-project.org Subject: Re: [R] Error on distance matrix On Thu, 2008-01-10 at 10:48 +, Marc Moragues wrote: >

Re: [R] Error on distance matrix

2008-01-10 Thread Marc
Thanks for your help. It is working now. Marc. Gavin Simpson wrote: > On Thu, 2008-01-10 at 10:48 +, Marc Moragues wrote: > >> Hi, >> >> I am trying to calculate a distance matrix on a binary data frame using >> dist.binary() {ade4}. This is the code I run and the error I get: >> >> >>

Re: [R] Error on distance matrix

2008-01-10 Thread Gavin Simpson
On Thu, 2008-01-10 at 10:48 +, Marc Moragues wrote: > Hi, > > I am trying to calculate a distance matrix on a binary data frame using > dist.binary() {ade4}. This is the code I run and the error I get: > > > sjlc.dist <- dist.binary(as.data.frame(data), method=2) #D = (a+d) / > (a+b+c+d) > Er

Re: [R] Error on distance matrix

2008-01-10 Thread Jari Oksanen
Jari Oksanen oulu.fi> writes: > > Marc Moragues scri.ac.uk> writes: > > > > > Hi, > > > > I am trying to calculate a distance matrix on a binary data frame using > > dist.binary() {ade4}. This is the code I run and the error I get: > > > > > sjlc.dist <- dist.binary(as.data.frame(data), met

Re: [R] Error on distance matrix

2008-01-10 Thread Jari Oksanen
Marc Moragues scri.ac.uk> writes: > > Hi, > > I am trying to calculate a distance matrix on a binary data frame using > dist.binary() {ade4}. This is the code I run and the error I get: > > > sjlc.dist <- dist.binary(as.data.frame(data), method=2) #D = (a+d) / > (a+b+c+d) > Error in if (any(df

[R] Error on distance matrix

2008-01-10 Thread Marc Moragues
Hi, I am trying to calculate a distance matrix on a binary data frame using dist.binary() {ade4}. This is the code I run and the error I get: > sjlc.dist <- dist.binary(as.data.frame(data), method=2) #D = (a+d) / (a+b+c+d) Error in if (any(df < 0)) stop("non negative value expected in df") : mis