R 包“gtsummary”没有正确显示日期摘要

发布于 2025-01-12 13:43:33 字数 487 浏览 0 评论 0原文

R 包 gtsummary 未正确显示 date 数据类型变量的摘要。即使使用 as.Date 函数将变量显式转换为 date 数据类型后,它也会显示类似的因素。但与此同时,它对于其他一些date 数据类型变量也能正确显示。我使用 class 函数检查了这两个变量,并且这两个变量都是 Date 数据类型。有人可以帮忙吗?

class(d$`UGI bleed`)
[1] "Date"
class(d$`LGI bleed`)
[1] "Date"

输入图片此处描述

The R package gtsummary is not showing the date datatype variable's summary properly. It is showing like factors even after explicitly converting the variable to date datatype using as.Date function. But at the same time it is showing properly for some other date datatype variables. I checked both the variables with class function and both of the variables are Date datatype. Can someone please help.

class(d

The R package gtsummary is not showing the date datatype variable's summary properly. It is showing like factors even after explicitly converting the variable to date datatype using as.Date function. But at the same time it is showing properly for some other date datatype variables. I checked both the variables with class function and both of the variables are Date datatype. Can someone please help.

UGI bleed`) [1] "Date" class(d

The R package gtsummary is not showing the date datatype variable's summary properly. It is showing like factors even after explicitly converting the variable to date datatype using as.Date function. But at the same time it is showing properly for some other date datatype variables. I checked both the variables with class function and both of the variables are Date datatype. Can someone please help.

LGI bleed`) [1] "Date"

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文