My code is not working
write.xlsx2(df,"Total.xlsx", Col.names=TRUE, row.names=TRUE)
Error in write.xlsx2(df, "Total.xlsx", Col.names = TRUE, row.names = TRUE) :
could not find function "write.xlsx2"
write.csv2(df, "total.xlsx", col.names= TRUE, row.names= TRUE)
Warning message:
In write.csv2(df, "total.xlsx", col.names = TRUE, row.names = TRUE) :
attempt to set 'col.names' ignored