You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to follow the book for ancestral reconstruction, the following error occurred:
here are my code:
library(phytools)
ger.data <- read.csv("habitats_try.csv",row.names=1,stringsAsFactors=TRUE)
ger.tree <- read.tree("timetree1.tre")
habitats <- setNames(ger.data[,1],rownames(ger.data))
fitER<-fitMk(ger.tree,habitats,model="ER")
Error in x[tree$tip.label, ] : subscript out of bounds
How should I resolve this error?
The text was updated successfully, but these errors were encountered:
When I tried to follow the book for ancestral reconstruction, the following error occurred:
here are my code:
The text was updated successfully, but these errors were encountered: