daijiang / phyr

Functions for phylogenetic analyses
https://daijiang.github.io/phyr/
GNU General Public License v3.0
30 stars 10 forks source link

fixes #73, issue with translating formula #74

Closed rdinnager closed 2 years ago

rdinnager commented 2 years ago

Something was going wrong with the gsub replacing the cbind call. This PR fixes that by instead just directly replacing the second element of the formula (which corresponds to the LHS), with the correct symbol. It works for the example bug that prompted issue #73 . And I think it should work in general, but please give it a look over @daijiang. Thanks!