简体   繁体   English

R 在 write.table output 结束时打印 null

[英]R prints null at end of write.table output

I have an R script which writes a table with the following line:我有一个 R 脚本,它使用以下行编写一个表:

print(write.table(dat, sep =",", row.names=FALSE))

The result if I pipe to CSV (or print to STDOUT on the command line) is:如果我 pipe 到 CSV (或在命令行上打印到 STDOUT)的结果是:

在此处输入图像描述

How can this be avoided?如何避免这种情况?

Thanks for your insight <3感谢您的洞察力<3

Not using print() solved the issue不使用print()解决了这个问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM