I am using write.xlsx to add data to new sheets in excel.
When I run this, everything works fine:
write.xlsx(data, file = "file.xlsx", sheetName = "DDS vs MDS", append = TRUE)
When I try to do the same thing but exclude the pointless first column, it doesn't work:
write.xlsx(data, file = "file.xlsx", sheetName = "DDS vs MDS", row.names = FALSE, append = TRUE)
It gives me error:
the condition has length > 1 and only the first element will be used
What am I missing?