| as.data.frame.regsensitivity | R Documentation |
Returns the results table of a regsensitivity object as a plain
data.frame, with the sensitivity parameters and the bounds (or the
breakdown frontier) in columns.
## S3 method for class 'regsensitivity'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
...,
digits = NULL,
finite_only = FALSE
)
x |
A |
row.names, optional |
Ignored, present for S3 compatibility with
|
... |
Ignored. |
digits |
Optional number of significant digits to round numeric
columns to. |
finite_only |
Logical. If |
This is the recommended entry point for producing tables. Because the
return value is an ordinary data frame it can be handed to whichever
table package you already use – knitr::kable(), kableExtra,
gt, modelsummary, huxtable, tinytable or
xtable – rather than committing the package to one of them.
regsen_table() wraps the common case.
A data.frame.
data(bfg2020)
res <- regsen_bounds(
avgrep2000to2016 ~ tye_tfe890_500kNI_100_l6 + log_area_2010 + lat + lon,
data = bfg2020, compare = c("log_area_2010", "lat", "lon"), cbar = 0.1
)
head(as.data.frame(res))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.