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

If you prefer waiting for next CRAN release, a temporary workaround would be something like this:

view(dfSummary(df, max.string.width = 50))


来源:https://stackoverflow.com/questions/61878582/why-does-dfsummary-r-sometimes-plot-factor-levels-in-one-line

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!