Mitch Ohriner
2012-Dec-19 01:52 UTC
[R] Help with building taxonomies through package "ade4"
Hello, I’m trying to use the package ade4 to build a taxonomy, though my data isn’t biological. Here’s the data (a small subset of the real data): dat = matrix(c("070201","0201","01","100201","0201","01","070201","0201", "01","110201","0201","01","020501","0501","01","040102","0102","02","040102" ,"0102","02","040102","0102","02","040102","0102","02","040102","0102","02" ),10,3,byrow=T) dat = cbind(as.character(1:10), dat) colnames(dat) = c("phrase","species","genus","family") The line, tax = as.taxo(data.frame(dat)) works fine, though doesn’t do much. The line, tax.phy <- taxo2phylog(tax,add.tools=TRUE) Generates the following error: Error in eigen(w, sym = TRUE) : infinite or missing values in 'x' Can anyone explain this, or tell me how to format the data in order to produce the taxonomy? I'm not sure where eigen()is being called, how I can get it to ignore this error, and I doubt that I need the results for my purposes anyway. Thanks and best regards, -Mitchell Ohriner Winchester, VA USA [[alternative HTML version deleted]]