Re: [R-sig-phylo] Question on min(D.eig$values) in pcoa function of ape in R

2020-04-07 Thread Coline Boonman
or someone else can figure out why this error occurs. Kind regards, Coline From: Emmanuel Paradis [mailto:emmanuel.para...@ird.fr] Sent: Tuesday, 7 April 2020 05:15 To: Coline Boonman Cc: r-sig-phylo Subject: Re: [R-sig-phylo] Question on min(D.eig$values) in pcoa function of ape in R

Re: [R-sig-phylo] Question on min(D.eig$values) in pcoa function of ape in R

2020-04-06 Thread Emmanuel Paradis
rom: Emmanuel Paradis [ [ mailto:emmanuel.para...@ird.fr | >> mailto:emmanuel.para...@ird.fr ] ] >> Sent: Thursday, 2 April 2020 07:43 >> To: Coline Boonman < [ mailto:c.boon...@science.ru.nl | >> c.boon...@science.ru.nl >> ] > >> Cc: r-sig-phylo < [ mai

Re: [R-sig-phylo] Question on min(D.eig$values) in pcoa function of ape in R

2020-04-06 Thread Coline Boonman
ent: Monday, 6 April 2020 16:47 To: Coline Boonman Cc: r-sig-phylo Subject: Re: [R-sig-phylo] Question on min(D.eig$values) in pcoa function of ape in R Hi Coline, Actually the test would be: any(is.complex(mat_dissim_Eucl)) And you may also test: isSymmetric(as.mat

Re: [R-sig-phylo] Question on min(D.eig$values) in pcoa function of ape in R

2020-04-06 Thread Emmanuel Paradis
Paradis [mailto:emmanuel.para...@ird.fr] Sent: Thursday, 2 April 2020 07:43 To: Coline Boonman Cc: r-sig-phylo Subject: Re: [R-sig-phylo] Question on min(D.eig$values) in pcoa function of ape in R Hi Coline, This is strange: you calculate a distance matrix with daisy(), so

Re: [R-sig-phylo] Question on min(D.eig$values) in pcoa function of ape in R

2020-04-06 Thread Coline Boonman
: r-sig-phylo Subject: Re: [R-sig-phylo] Question on min(D.eig$values) in pcoa function of ape in R Hi Coline, This is strange: you calculate a distance matrix with daisy(), so the as.matrix() operation should return a symmetric matrix. Symmetric (real) matrices have all their eigenvalues

Re: [R-sig-phylo] Question on min(D.eig$values) in pcoa function of ape in R

2020-04-01 Thread Emmanuel Paradis
Hi Coline, This is strange: you calculate a distance matrix with daisy(), so the as.matrix() operation should return a symmetric matrix. Symmetric (real) matrices have all their eigenvalues real numbers. Maybe some complex values were produced by daisy()? Best, Emmanuel - Le 30 Mar

[R-sig-phylo] Question on min(D.eig$values) in pcoa function of ape in R

2020-04-01 Thread Coline Boonman
Dear reader, I am working with the pcoa function of ape in R and I got the error message: "min(D.eig$values) : invalid 'type' (complex) of argument" . My input data is a distance matrix, which pcoa first converts to a matrix in the first line within the code of the function. The error occurs