as.data.frame.ls_means function

Coerce ls_means Objects to data.frames

Coerce ls_means Objects to data.frames

## S3 method for class 'ls_means' as.data.frame(x, ..., add_levels = TRUE)

Arguments

  • x: an ls_means object.
  • ...: currently not used.
  • add_levels: add term and levels columns to returned data.frame?

Examples

# Fit example model: data("cake", package="lme4") cake$Temp <- factor(cake$temperature, ordered = FALSE) model <- lmer(angle ~ recipe + Temp + (1|recipe:replicate), cake) # Extract LS-means: head(lsm <- ls_means(model)) # Coerce LS-means objects to data.frames: head(as.data.frame(lsm)) head(as.data.frame(lsm, add_levels=FALSE))

See Also

ls_means.lmerModLmerTest

Author(s)

Rune Haubo B. Christensen

  • Maintainer: Rune Haubo Bojesen Christensen
  • License: GPL (>= 2)
  • Last published: 2020-10-23