简体   繁体   中英

R prints null at end of write.table output

I have an R script which writes a table with the following line:

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

The result if I pipe to CSV (or print to STDOUT on the command line) is:

在此处输入图像描述

How can this be avoided?

Thanks for your insight <3

Not using print() solved the issue

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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