Closed lukejharmon closed 9 years ago
weird error is returned if data matrix does not have column names. Minimal example (uncomment to fix):
tree<-pbtree(n=100, scale=1) mm<-cbind(c(1, -0.5), c(-0.5, 1)) z<-sim.char(tree, mm, model="BM")[,,1]
td<-make.treedata(tree, z)
Fixed.
weird error is returned if data matrix does not have column names. Minimal example (uncomment to fix):
tree<-pbtree(n=100, scale=1) mm<-cbind(c(1, -0.5), c(-0.5, 1)) z<-sim.char(tree, mm, model="BM")[,,1]
colnames(z)<-c("x", "y")
td<-make.treedata(tree, z)