简体   繁体   English

设置 Excel Pivot 表与 R

[英]Set Excel Pivot table with R

I want to make a pivot using R, set pivot table fields and export to Excel as formatted pivot table. I want to make a pivot using R, set pivot table fields and export to Excel as formatted pivot table. Is there any package that allows me to do this?是否有任何 package 允许我这样做? Maybe it is possible to first set a pivot table with excel and then use R to read and export other tables?也许可以先用 excel 设置一个 pivot 表,然后使用 R 读取和导出其他表?

There are many packages that help you make pivot tables, the most popular are Tidyr from Tidyverse and data.table , and to export to Excel you can use XLConnect or openxlsx .有许多软件包可以帮助您制作 pivot 表,最流行的是TidyrTidyversedata.table ,导出到 Excel 可以使用XLConnectopenxlsx Maybe if you provide some reproducible example someone around here could help you.也许如果您提供一些可重复的示例,这里的某个人可以帮助您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM