summarytools

Why does dfSummary (R) sometimes plot factor levels in one line?

落爺英雄遲暮 提交于 2020-06-29 04:32:05
问题 Why does dfSummary command of the "summarytools" package in R in some cases prints the value labels in one row instead of in row per level? I cannot provide a reproducible data sample, but here is a Screenshot from view() command in R. Screenshot_dfSummary_view I checked classes, tried to relabel and rename etc. but without success. 回答1: I just saw this... I fixed the issue, you can install from github using remotes or devtools: remotes::install_github("dcomtois/summarytools", ref="master")

R - Setting the class of an object created with by()

百般思念 提交于 2019-12-11 02:28:19
问题 First a little bit of context: In my package summarytools, I've defined a print method for objects of classs "summarytools". I have also created a function view() that handles objects created using by() or lapply() in such a way that the output doesn't include the lines stating the group -- or the variable in the case of lapply() ; summarytools displays its own headings containing that information, so there is some redundancy when using print . Also, the main headings are not repeated when