tabularise_tidy.nls: Tidy version of the nls object into a flextable object

View source: R/tabularise.nls.R

tabularise_tidy.nlsR Documentation

Tidy version of the nls object into a flextable object

Description

Extract the information contained in a nls object into a rectangular table as it could be obtained by broom::tidy(). Here, the table is nicely formatted as an (almost) publication-ready form (good for informal reports, notebooks, etc).

Usage

## S3 method for class 'nls'
tabularise_tidy(data, ..., kind = "ft", env = parent.frame())

Arguments

data

A nls object

...

arguments of tabularise_coef.summary.nls()

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).

Value

A flextable object that you can print in different forms or rearrange with the {flextable} functions.

See Also

tabularise::tabularise(), tabularise::tabularise_tidy(), tabularise_coef.summary.nls()

Examples

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$tidy(chick1_logis)
tabularise::tabularise$tidy(chick1_logis, lang = "fr")

SciViews/modelit documentation built on Nov. 24, 2024, 10:23 a.m.