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