Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 22, 2023
1 parent bc12be3 commit 0bc821c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
17 changes: 8 additions & 9 deletions R/find_terms.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,14 @@
#' (see examples below), while `find_variables()` returns each variable
#' name only once.
#'
#' @examples
#' if (require("lme4")) {
#' data(sleepstudy)
#' m <- suppressWarnings(lmer(
#' log(Reaction) ~ Days + I(Days^2) + (1 + Days + exp(Days) | Subject),
#' data = sleepstudy
#' ))
#' @examplesIf require("lme4", quietly = TRUE)
#' data(sleepstudy, package = "lme4")
#' m <- suppressWarnings(lme4::lmer(
#' log(Reaction) ~ Days + I(Days^2) + (1 + Days + exp(Days) | Subject),
#' data = sleepstudy
#' ))
#'
#' find_terms(m)
#' }
#' find_terms(m)
#'
#' # sometimes, it is necessary to retrieve terms from "term.labels" attribute
#' m <- lm(mpg ~ hp * (am + cyl), data = mtcars)
Expand Down Expand Up @@ -231,6 +229,7 @@ find_terms.mipo <- function(x, flatten = FALSE, ...) {
compact_list(f[c(length(f), 1:(length(f) - 1))])
}


.get_variables_list_aovlist <- function(f, resp = NULL) {
i <- vapply(f[[3]], function(x) {
x <- as.character(x)
Expand Down
16 changes: 8 additions & 8 deletions man/find_terms.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0bc821c

Please sign in to comment.