Output in R, Avoid Writing “[1]”

后端 未结 4 712
独厮守ぢ
独厮守ぢ 2020-12-01 13:35

I use print to output from a function in R, for example:

print(\"blah blah blah\")

This outputs

[1] \"blah bla         


        
4条回答
  •  庸人自扰
    2020-12-01 14:17

    Use cat("Your string") (type ?cat to see help page) to output concatenated objects to standard output.

提交回复
热议问题