filter_output: filter_output

View source: R/rmd_utils.R

filter_outputR Documentation

filter_output

Description

filter_output

Usage

filter_output(x, lines = NULL, cat = TRUE)

Arguments

x

the result of a function to capture e.g. summary(x)

lines

a vector of line numbers to extract or a pattern as "from|to" where from and to are regex mapping the lines to extract.

cat

logical indicating if using cat() for the output

Examples

fit <- lm(mpg ~ hp, data = mtcars)
filter_output(summary(fit), 1:5)

filippogambarota/filor documentation built on July 3, 2025, 8:39 p.m.