report_table | R Documentation |
Creates tables to describe different objects (see list of supported objects
in report()
).
report_table(x, ...)
x |
The R object that you want to report (see list of of supported objects above). |
... |
Arguments passed to or from other methods. |
An object of class report_table()
.
# Miscellaneous
r <- report_table(sessionInfo())
r
summary(r)
# Data
report_table(iris$Sepal.Length)
report_table(as.character(round(iris$Sepal.Length, 1)))
report_table(iris$Species)
report_table(iris)
# h-tests
report_table(t.test(mtcars$mpg ~ mtcars$am))
# ANOVAs
report_table(aov(Sepal.Length ~ Species, data = iris))
# GLMs
report_table(lm(Sepal.Length ~ Petal.Length * Species, data = iris))
report_table(glm(vs ~ disp, data = mtcars, family = "binomial"))
# Mixed models
library(lme4)
model <- lme4::lmer(Sepal.Length ~ Petal.Length + (1 | Species), data = iris)
report_table(model)
# Bayesian models
library(rstanarm)
model <- suppressWarnings(stan_glm(Sepal.Length ~ Species, data = iris, refresh = 0, iter = 600))
report_table(model, effectsize_method = "basic")
# Structural Equation Models (SEM)
library(lavaan)
structure <- "ind60 =~ x1 + x2 + x3
dem60 =~ y1 + y2 + y3
dem60 ~ ind60"
model <- lavaan::sem(structure, data = PoliticalDemocracy)
suppressWarnings(report_table(model))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.