I'm new to phylogenetic analyses, and I'm using the ape
library to analyse neuroanatomical traits of 34 primates from 28 different species. I used 10ktrees to obtain a consensus phylogenetic tree (with 28 tips). However, I can't combine the phenotypes and the tree because the number of observations do not match the number of tips. Should I use a polytomy for spliting a tip into multiple subjects?
This is my code thus far:
tree <- read.nexus("10ktree.nex")
pheno <- read.csv("pheno.csv")
BrainVolume <- pheno$BrainVolume
names(BrainVolume) <- pheno$GenBank.Name
pic.BrainVolume <- pic(BrainVolume, tree)
And I get the following error:
Error in pic(BrainVolume, tree) :
length of phenotypic and of phylogenetic data do not match
Thank you for your help!