79468333

Date: 2025-02-26 02:18:47
Score: 2
Natty:
Report link

I tried the na.string="NA" argument in write.xlsx() and this seemed to work for me, giving simply NA in the output Excel file (instead of #N/A.) Further, capturing the return argument at left seems to help for getting the overwrite=T argument to work.

retval<-write.xlsx(mytab, fname, colNames = TRUE, overwrite=T,keepNA=T,na.string="NA")

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Morie