liamrevell / phytools

GNU General Public License v3.0
198 stars 56 forks source link

as.princomp on phy.pca using mode="cor" #135

Closed aleungplants closed 1 year ago

aleungplants commented 1 year ago
data(anoletree)
data(anole.data)
pca<-phyl.pca(anoletree,anole.data,mode="cor")
pca
as.princomp(pca)

Is it just me or does running this code not work? I am getting the error:

'names' attribute [6] must be the same length as the vector [1]

It works when mode="cov".

liamrevell commented 1 year ago

Should now be fixed on GitHub.