是否可以使用GTSummary表(或将GT对象转换为GTSummary对象)?
这是我的情况:
- 我使用
gtsummary
在tbl_summary
class变量上创建 - 我需要使用
gtsummary
- 但是,我需要进行一些格式化。需要gt
函数 - ,因此,我将我的
tbl_summary
转换为gt_tbl
使用as_gt()
- 问题是现在可以不再导出到MS Word,也不能转换回
tbl_summary
,
因为gtsummary
是围绕gt
的包装器,似乎应该有一种方法要么:
- 使用
gt
直接在gtsummary
对象上函数而无需转换它,或 - 将
gt
对象转换为gtsummary 对象
Here is my situation:
- I use
gtsummary
to create attbl_summary
class variable - I need to do some formatting that is not possible with
gtsummary
- but instead requiresgt
functions - Therefore, I convert my
tbl_summary
to agt_tbl
usingas_gt()
- The problem is that now can no longer export to MS Word, nor can I convert back to
tbl_summary
Since gtsummary
is a wrapper around gt
it seems like there should be a way to either:
- Use
gt
functions directly on thegtsummary
object without converting it, or - Convert the
gt
object back to agtsummary
object
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有几个选择:
tbl_summary(... ;
There are a couple of options for you:
tbl_summary(...) %>% as_flex_table() %>% <flextable formatting functions>