View source: R/tabularise.nls.R
tabularise_coef.summary.nls | R Documentation |
This function extracts and formats the table of coefficients from a
summary.nls object, similar to stats::coef()
, but in flextable object.
## S3 method for class 'summary.nls'
tabularise_coef(
data,
header = TRUE,
title = NULL,
equation = header,
lang = getOption("data.io_lang", "en"),
show.signif.stars = getOption("show.signif.stars", TRUE),
...,
kind = "ft",
env = parent.frame()
)
data |
A summary.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.,
|
show.signif.stars |
If |
... |
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.
data("ChickWeight", package = "datasets")
chick1 <- ChickWeight[ChickWeight$Chick == 1, ]
# Adjust a logistic curve
chick1_logis <- nls(data = chick1, weight ~ SSlogis(Time, Asym, xmid, scal))
chick1_logis_sum <- summary(chick1_logis)
tabularise::tabularise$coef(chick1_logis_sum)
tabularise::tabularise$coef(chick1_logis_sum, header = FALSE, equation = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.