mat_tidy_do | R Documentation |
Tidy on a df of regs with col reg_out
mat_tidy_do(df, reg_col = reg_out, ...)
df |
data |
reg_col |
name of column with regs? |
... |
futher arguments passed to tidy |
library(purrr)
library(dplyr)
library(tidyr)
iris_regs <- nest(iris, data=-Species) %>%
mutate(reg_out = map(data, ~lm(Petal.Width~Petal.Length, data=as_tibble(.)))) %>%
select(-data)
mat_tidy_do(df=iris_regs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.