I'm getting the following error that I cannot resolve:
"Error in traitDependentBAMM(edata, dispersaltrait, reps = 1000, return.full = TRUE, : Species names in the bamm-data object and trait data are not identical."
I have confirmed multiple times that the species names are identical in the two files and have even tried to make dummy files using the tip.label vector from the eventdata file but still receive the same error. I have searched this site for similar errors, but am unable to find them. I fear that it is user error, but I cannot figure out the cause.
Thanks for any help you can provide.
Below is my code and I have attached the relevant files. I'm running it on a Mac M1. RStudio 2022.07.1+554 "Spotted Wakerobin" Release (7872775ebddc40635780ca1ed238934c3345c5de, 2022-07-22) for macOS
Mozilla/5.0 (Macintosh; Intel Mac OS X 13_0_0) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.10 Chrome/69.0.3497.128 Safari/537.36
My code:
edata <- getEventData(tree, eventdata = "event_data.txt", burnin=0.1)
traits <- read.table("/Users/msolson/Desktop/Projects/Phylogeny_Salix/Spring2021/BAMM/results_fullCalTree_tree1/trait_dispersal.txt", sep = "\t", header = FALSE)
x <- traitDependentBAMM(edata,traits, reps = 1000, return.full = TRUE, method = 'k', logrates = TRUE, two.tailed = TRUE)