diversitree icon indicating copy to clipboard operation
diversitree copied to clipboard

Help with MuSSE csv file

Open LiliyaSerbina opened this issue 3 years ago • 0 comments

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

LiliyaSerbina avatar Apr 19 '21 13:04 LiliyaSerbina