mat_lm_means_tidy: Compute means by lm, tidy, unnest

View source: R/broom_tidy.R

mat_lm_means_tidyR Documentation

Compute means by lm, tidy, unnest

Description

This returns a clean df of means for each group

Usage

mat_lm_means_tidy(
  df_nest,
  val_name = value,
  clean = TRUE,
  vcov. = NULL,
  weight
)

Arguments

df_nest

a nested df

val_name

name of value column

clean

Clean the broom colnames?

vcov.

Specify vcov

weight

weight argument passed to lm

Examples

library(magrittr)
data(iris_tb)
iris_tb %>%
  tidyr::nest(data=-Species) %>%
  mat_lm_means_tidy(Petal.Width)

MatthieuStigler/matPkg documentation built on Nov. 13, 2023, 7:53 p.m.