aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-09-01 08:06:20 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-09-01 08:06:20 +0200
commit36b534d7cbd3b98f0caa8e801beac1c55093f6c7 (patch)
tree744f57f1d371623a95bd5cd9614ee4a34181ddbd /R
parent6fbb2341f998b322f21fe4e7cd655e0ca61cdbe4 (diff)
parent2f492ce2acf21610a7b15ce5d1878cf0f2ae5b4d (diff)
Merge branch 'master' of kolab.jrwb.de:mkin
Diffstat (limited to 'R')
-rw-r--r--R/nlme.mmkin.R29
1 files changed, 0 insertions, 29 deletions
diff --git a/R/nlme.mmkin.R b/R/nlme.mmkin.R
index fdf64fbf..a94a26f7 100644
--- a/R/nlme.mmkin.R
+++ b/R/nlme.mmkin.R
@@ -170,32 +170,3 @@ update.nlme.mmkin <- function(object, ...) {
class(res) <- c("nlme.mmkin", "nlme", "lme")
return(res)
}
-
-# The following is necessary as long as R bug 17761 is not fixed
-# https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17761
-#' @export
-anova.nlme.mmkin <- function(object, ...) {
- thisCall <- as.list(match.call())[-1]
- object_name <- as.character(thisCall[[1]])
- other_object_names <- sapply(thisCall[-1], as.character)
-
- remove_class <- function(object, classname) {
- old_class <- class(object)
- class(object) <- setdiff(old_class, classname)
- return(object)
- }
- object <- remove_class(object, "nlme.mmkin")
- other_objects <- list(...)
- other_objects <- lapply(other_objects, remove_class, "nlme.mmkin")
-
- env <- new.env()
- assign(object_name, object, env)
- for (i in seq_along(other_objects)) {
- assign(other_object_names[i], other_objects[[i]], env)
- }
- res <- eval(parse(text = paste0("anova.lme(", object_name, ", ",
- paste(other_object_names, collapse = ", "), ")")),
- envir = env)
-
- return(res)
-}

Contact - Imprint