richfitz / diversitree

diversitree: comparative phylogenetic analyses of diversification
http://www.zoology.ubc.ca/prog/diversitree
30 stars 9 forks source link

Help with MuSSE csv file #30

Open LiliyaSerbina opened 3 years ago

LiliyaSerbina commented 3 years ago

Hi everyone!

I am struggling with a constant problem with a csv extension while preparing data for MuSSE model analysis: have tried to do a bunch of stuff to fix a problem but no success - always the same thing ("All names must be length 1"). I would very grateful for your help! :)

library(diversitree) dat="MuSSE_hosts.csv" dat<- read.table("MuSSE_hosts.csv", header=TRUE, dec=".", sep=",", row.names=1) mat <- dat[,2:ncol(dat)] lik.0 <- make.musse.multitrait(tree, mat, depth=0) Error in check.states.musse.multitrait(tree, states, strict = strict, : All names must be length 1