library(tidyverse)
library(ape)
library(phyloseq)
unifrac_unweighted <- UniFrac(tree, weighted = F)
Fehler in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘UniFrac’ for signature ‘"phylo"’
3.
stop(gettextf("unable to find an inherited method for function %s for signature %s", sQuote(fdef@generic), sQuote(cnames)), domain = NA)
2.
(function (classes, fdef, mtable) { methods <- .findInheritedMethods(classes, fdef, mtable) if (length(methods) == 1L) ...
1.
UniFrac(tree_BLS, weighted = T)
树是系统发育树(用 证明class(tree)
)。我已经尝试重新安装 phyloseq,但它没有帮助。如何避免这个错误?