Returns summary table in ame format and, with a On options, the data frame may be entirely character variables. Loads output in Viewer pane (RStudio only). The out option determines what will be done with the This will also include some additional information about your data that Publish an HTML table to Viewer (in RStudio) or the browser (otherwise). Generally you can leave out at its default and it will Kables since this is an RMarkdown document. Options as to how the table will be constructed, and each of these Latex options are there too) file with summary statisticsįor each of the variables in data. The goal of sumtable() is to take a data set Sumtable(data, vars= NA, out= NA, file= NA, summ= NA, summ.names= NA, add.median= FALSE, group= NA, group.long= FALSE, group.test= FALSE, group.weights = NA, col.breaks= NA, digits= 2, fixed.digits= FALSE, numformat = formatfunc( digits = digits, big.mark = ''), skip.format = c( 'notNA(x)', 'propNA(x)', 'countNA(x)'), factor.percent= TRUE, unts= TRUE, factor.numeric= FALSE, logical.numeric= FALSE, logical.labels= c( 'No', 'Yes'), labels= NA, title= 'Summary Statistics', note = NA, anchor= NA, col.width= NA, col.align= NA, align= NA, note.align= 'l', fit.page= NA, simple.kable= FALSE, obs.function= NA) opts = list() ) Loading the package this took eight keystrokes and no Isn’t this what you basically already want? After Isn’t entwined with a bunch of regression-table functionality. Group, and being a summary-statistics-only function so the documentation Tibbles, factor variables, producing summary statistics by With some additional important bonuses, like working with Statistics functionality of stargazer::stargazer(), except Makes sumtable() very similar in spirit to the summary Produces (and I think a lot of you do!) then it’s perfect and easy. However, if you want the kind of table sumtable() Over your table, those packages are already great, we don’t need another Nor should they be! If you want full control Sumtable() has customization options, but they’reĬertainly not as extensive as with a package like gtsummary St() shortcut, and the intent of not having to set a bunch In the sense of trying to keep the number of keystrokes low (thus the Sumtable and have it pretty much be what you want immediately, and also That’s both in the sense that you should just be able to ask for a Second, sumtable() is designed to have niceĭefaults and be fast to work with. Information about your data while continuing to work on it. RStudio) or the browser (elsewhere), making it easy to look at Sumtable() by default prints its results to Viewer (in There are a huge number of R packages that will make a summary Summary statistics an be for the whole data Sumtable() takes a dataset and outputs a formatted The vtable package serves the purpose of outputtingĪutomatic variable documentation that can be easily viewed whileĭftoHTML()/ dftoLaTeX(). Sumtable: Summary Statistics sumtable: Summary Statistics Nick Huntington-Klein
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |