nested_rug_values | R Documentation |
Extracts original data for smooth terms, formats them in long/tidy format, then nests the data column(s) such that the result is a nested data frame with one row per smooth.
nested_rug_values(object, terms = NULL, data = NULL, distinct = TRUE)
object |
a fitted GAM model |
terms |
a vector of terms to include original data for. Passed to
argument |
data |
optional data frame |
A nested tibble (data frame) with one row per smooth term.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.