diversitree
diversitree copied to clipboard
Help with MuSSE csv file
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