inst/doc/nestedmodels-limitations.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(nestedmodels)
library(parsnip)

## ----time---------------------------------------------------------------------
model <- linear_reg() %>%
  set_engine("lm") %>%
  nested()

system.time({
  fit(model, z ~ ., tidyr::nest(example_nested_data, data = -id))
})

## ----size---------------------------------------------------------------------
utils::object.size(fit)

Try the nestedmodels package in your browser

Any scripts or data that you put into this service are public.

nestedmodels documentation built on Sept. 30, 2023, 5:06 p.m.