Hello everyone, I am encountering an error while using the make.simmap() function from the package phytools.
I am getting the following error message when executing the code: > mtree <- make.simmap(tree, trait, model = "ER") Error in 1:nrow(L) : argument of length 0 Data information: * The tree object is obtained from a phylogenetic tree file (class "phylo") * The trait object is derived from the dataframe. (class "numeric"). * It is important to note that the species in the dataframe and the tip labels of the phylogeny match and are in the same order. * The phylogenetic tree used in the analysis contains 1765 tips. Package and version: * R version: [R version 4.1.0 (2021-05-18)] * phytools package version: [ ‘0.7.90’ ] Desired outcome: My goal is to simulate character data using the make.simmap() function based on the tree and trait objects, using the "ER" model. If anyone has any thoughts or advice, I would appreciate it. Thanks a lot! Cheers, Rachel [[alternative HTML version deleted]] _______________________________________________ R-sig-phylo mailing list - R-sig-phylo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-phylo Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/