arborworkflows / aRbor

aRbor, an R package with useful functions for Arbor workflows
5 stars 3 forks source link

make.treedata and column names #27

Closed lukejharmon closed 9 years ago

lukejharmon commented 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]

colnames(z)<-c("x", "y")

td<-make.treedata(tree, z)

lukejharmon commented 9 years ago

Fixed.