View source: R/tabularise.nls.R
tabularise_glance.nls | R Documentation |
Extract the information contained in an nls object in a table as it could
be obtained by broom::glance()
. Here, the table is nicely formatted as an
(almost) publication-ready form (good for informal reports, notebooks, etc).
## S3 method for class 'nls'
tabularise_glance(
data,
header = TRUE,
title = NULL,
equation = header,
lang = getOption("data.io_lang", "en"),
...,
kind = "ft",
env = parent.frame()
)
data |
An nls object. |
header |
If |
title |
If |
equation |
Add equation of the model to the table. If |
lang |
The language to use. The default value can be set with, e.g.,
|
... |
Additional arguments passed to |
kind |
The kind of table to produce: "tt" for tinytable, or "ft" for flextable (default). |
env |
The environment where to evaluate lazyeval expressions (unused for now). |
A flextable object that you can print in different forms or rearrange with the {flextable} functions.
tabularise::tabularise_glance()
, tabularise_coef.summary.nls()
data("ChickWeight", package = "datasets")
chick1 <- ChickWeight[ChickWeight$Chick == 1, ]
# Adjust a logistic curve
chick1_logis <- nls(data = chick1, weight ~ SSlogis(Time, Asym, xmid, scal))
tabularise::tabularise$glance(chick1_logis)
tabularise::tabularise$glance(chick1_logis, lang = "fr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.