Skip to content

Commit

Permalink
export glance methods
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausVigo committed Mar 6, 2024
1 parent 0ea5b08 commit d016642
Show file tree
Hide file tree
Showing 3 changed files with 446 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/codonTest.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ codonTest <- function(tree, object, model = c("M0", "M1a", "M2a"),
}


# tidy codon
#' @export
glance.pml <- function(x, ...) {
res <- data.frame(logLik = x$logLik,
df = x$df,
Expand All @@ -142,7 +142,7 @@ glance.pml <- function(x, ...) {
res
}


#' @export
glance.pmlMix <- function(x, ...) {
nr <- attr(x$fits[[1]]$data, "nr")
res <- data.frame(logLik = x$logLik,
Expand Down
Loading

0 comments on commit d016642

Please sign in to comment.