用 R 打印信息的更好方法是什么? [英] what's a prettier way to print info with R?

查看:65
本文介绍了用 R 打印信息的更好方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 R 中,我使用打印函数进行输出,但我总是得到一个难看的输出.如果我这样做:

In R, I use the print function for output but I always get an ugly output. If I do:

print("hello world")

输出为:

[1] "hello world"

是否有一种功能/方法可以打印输出并获取我想要的文本?

Is there a function/way to print the output and just get the text I want?

谢谢

推荐答案

请阅读精美的手册并发现 cat(), sprintf(), ... and还有很多.

Please read the fine manuals and discover cat(), sprintf(), ... and much much more.

这篇关于用 R 打印信息的更好方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆