Learn R Programming

report (version 0.6.0)

format_algorithm: Convenient formatting of text components

Description

Convenient formatting of text components

Usage

format_algorithm(x)

format_formula(x, what = "conditional")

format_model(x)

Value

A character string.

A character string.

A character string.

Arguments

x

The R object that you want to report (see list of of supported objects above).

what

The name of the item returned by insight::find_formula.

Examples

Run this code
model <- lm(Sepal.Length ~ Species, data = iris)
format_algorithm(model)

# Mixed models
library(lme4)
model <- lme4::lmer(Sepal.Length ~ Sepal.Width + (1 | Species), data = iris)
format_algorithm(model)
model <- lm(Sepal.Length ~ Species, data = iris)
format_formula(model)

# Mixed models
library(lme4)
model <- lme4::lmer(Sepal.Length ~ Sepal.Width + (1 | Species), data = iris)
format_formula(model)
format_formula(model, "random")
model <- lm(Sepal.Length ~ Species, data = iris)
format_model(model)

# Mixed models
library(lme4)
model <- lme4::lmer(Sepal.Length ~ Sepal.Width + (1 | Species), data = iris)
format_model(model)

Run the code above in your browser using DataLab