skembel / picante

R tools for integrating phylogenies and ecology
33 stars 17 forks source link

match.phylo.data fails when given a data.frame with a single column #8

Closed skembel closed 1 year ago

skembel commented 7 years ago

function match.phylo.data fails if the supplied data is a data.frame with a single column

kerby1998 commented 1 year ago

The solution work now. This is an example:

mauvais <- select(phylocom$traits, "traitA") ncol(mauvais) is.data.frame(mauvais) match.phylo.data(phylocom$phylo, mauvais[,1])