Giter Club home page Giter Club logo

Comments (3)

psychbruce avatar psychbruce commented on August 21, 2024

EMMEANS()不提供Word输出功能,因为要输出的表格太多了。

建议了解使用R Markdown进行自动化结果整理,例如新建一个.Rmd文件:

image

Knit一下可以直接把所有代码和Console输出的结果输出到一个Word文档(.docx):

image
(省略一部分截图)
image

另外还可以输出到PDF或HTML,只需要修改output:

output: pdf_document

output: html_document

或者:

image

具体请自行查阅R Markdown的用法,有更灵活的设置。

(注:此Issue将保留不关闭,以供其他用户参考)

from brucer.

mxjjk avatar mxjjk commented on August 21, 2024

感谢作者的回复,我后来用sink()将内容输出成.txt了,也能做到想用的效果

from brucer.

psychbruce avatar psychbruce commented on August 21, 2024

对,sink()也可以。更推荐用R Markdown,可以同时输出代码、结果、图表、非代码的文字描述、多级标题等等(多种内容的混排),也可以更美观一些。我现在自己的研究项目一般都用.Rmd(而不是.R)写代码和整理结果,方便自己和其他人查看。

from brucer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.