[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

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