in R, can I stop print(cat(“”)) from returning NULL? and why does cat(“foo”) return foo>

前端 未结 6 1694
太阳男子
太阳男子 2021-02-18 15:55

If I enter

print(cat(\"\"))

I get

NULL

I want to use cat() to print out the progress of an R sc

6条回答
  •  無奈伤痛
    2021-02-18 16:13

    NULL is the return value of "cat()". If you omit the outer "print()" you won't see the NULL.

提交回复
热议问题