Coder Social home page Coder Social logo

Comments (2)

DominiqueMakowski avatar DominiqueMakowski commented on June 22, 2024

Very good question!

I think that insight::format_table() is mainly a table formatted converting a dataframe to a table-like display when printed in the console (adding columns separators, spaces etc.). Whereas parameters_table is mainly a function that renames some columns for pretty printing, for instance if it detects the presence of columns named CI_low and CI_high, it will merge into one column named for instance 95% CI

PS: we are currently finishing a restructuration that has seen some parts of parameters and report going into the new effectsize package. Hence, it is likely that report will have to be restructured quite a bit in the days to come.

In particular, I am thinking about creating two main functions, model_table and model_text. The former would pull performance, parameters and effect size data and merge them together nicely (rmarkdown printing will probably have to be connected at this level), and model_text will transform this table to text. Then, the report function will mainly run these two subfunctions and return it all.

from report.

DominiqueMakowski avatar DominiqueMakowski commented on June 22, 2024

Closing as part of the house-cleaning related to the recent rewriting (so I can see clearer in the issues), but that's still an area of improvement.

Currently the printing of tables relies on insight and parameters:

report/R/report_table.R

Lines 100 to 102 in cbdd7f9

print.report_table <- function(x, ...) {
cat(insight::format_table(parameters::parameters_table(x, ...), ...))
}

from report.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.