如何减少Markdown中的回归输出
我想在Markdown中显示回归输出,但它包含许多字符变量,这些变量会导致许多自变量。有什么方法可以在摘要中显示前5个变量?结合选项(Max.print = 80)的摘要功能不提供我想要的解决方案。
I want to show a regression output in markdown but it contains a lot of character variables which result in a lot of independent variables. Is there any way to only show in the summary the first 5 variables? The summary function in combination with the options(max.print=80) does not provide the solution I want.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
tidy()
函数broom package在2022-07-08创建的 Reprex软件包(v2.0.1)
You can use
tidy()
function from broom packageCreated on 2022-07-08 by the reprex package (v2.0.1)
如果我正确理解您,例如,您可以从您想要的变量中征服系数(我使用
mtcars
dataset作为示例):在2022-07-07创建的 a href =“ https://reprex.tidyverse.org” rel =“ nofollow noreferrer”> reprex软件包 (v2.0.1)
If I understand you correctly, you could for example subset the coefficients from the variables you want like this (I use
mtcars
dataset as an example):Created on 2022-07-07 by the reprex package (v2.0.1)