【问题标题】:Can I pretty print a complicated string in R console?我可以在 R 控制台中漂亮地打印一个复杂的字符串吗?
【发布时间】:2013-12-07 07:56:59
【问题描述】:

我想得到what I say is what I get的效果。

"b\" it\'s me \"ha ha\""->string
print(string)
[1] "b\" it's me \"ha ha\""

我可以用简单的方式漂亮地打印字符串吗? 我想让它显示在屏幕上的是:

b "it's me "ha ha"  

【问题讨论】:

  • 我不明白这个问题。你想达到什么目的?

标签: r


【解决方案1】:

你试过cat吗?

cat(string)

b" it's me "ha ha"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-09-29
    • 2013-07-07
    • 1970-01-01
    • 2011-04-27
    • 2011-11-02
    • 2013-07-31
    • 2013-05-24
    • 2015-11-29
    相关资源
    最近更新 更多