使用R
我想对其进行报告,有一个巨大的数据框架(11列和 +100k行)。该报告基本上是一页,其中包含一些我保存在.rdata文件中的信息和一个带有所有数据框架值的表,从而通过条件为其中一些。
我之所以制作这个线程,是因为使用rmarkDown的渲染确实很慢。我在工作中与一个朋友进行了检查,并且代码确实是直接的,我认为没有其他选择...还有其他选择可以进行此类报告在这种情况下?我考虑过HTML,但是它必须容易出口,不可编辑并且最好可打印。
观察:我正在使用函数 kable 创建乳胶表。
I have a huge dataframe (11columns and +100k lines) that I wanna make a report on it. This report is basically a first page with some information that I saved in a .RData file and a table with ALL the values of the dataframe, coloring some of them by a condition.
I'm making this thread because rendering with RMarkDown is really slow.. I checked with a friend at work and the code is really direct, there is nowhere to optimize, I think... Is there another option for making this type of report in this conditions? I thought about html, but it need to be easily exportable, non editable and preferably printable.
Observation: I'm using the function kable to create the latex table.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这些11列是什么样的数据类型?如果其中一些是长角色或JSON,那可能是原因。听起来可能值得将数据预处理成较小的汇总数据框架吗?
如果您必须在数据框架中加载所有值,无论是否大数据类型,那将需要很长时间才能渲染!有人运行RMD文件是否真的需要询问数据本身?如果答案是否定的,请预先进行数据框架。如果答案是肯定的,则需要仪表板,而不是降价文件。
What kind of data types are those 11 columns? If some of them are long characters or json, that could be the reason. It sounds like it might be worth preprocessing your data into smaller aggregated dataframes?
If you have to load all values in the data frame, big data type or not, that's going to take a long time to render! Is anyone running the Rmd file really going to need to interrogate the data themselves? If the answer's no, then pre-aggregate that dataframe. If the answer's yes, then you need a dashboard, not a markdown file.
您是在远程文件夹中工作吗?我刚刚发现我将数据移至工作服务器,而不是计算机的桌面,并且针织功能变得非常慢。尝试将文件带到本地计算机上,看看是否有帮助。我在Potit支持论坛上看到了对此的讨论,但没有解决方案。
Are you working from a remote folder? I just found that I moved my data to my work's server rather than my computer's desktop and the knit function has become very slow. Try bringing your files to your local computer and seeing if that helps. I see a discussion of this on the Posit support forum, but there's no resolution.