I am trying to export a dataframe named "mat" (which has real and complex numbers) from R Studio to my desktop using the function write_xlsx() from the package writexl. The command does not throw any error and a file is also exported to my desktop but when I open the .xlsx file, there are no entries. It only has column numbers. Does writexl() not work with complex numbers? And if that is the case, is there an alternative way to export this dataframe to my computer?
write_xlsx(mat, col_names = TRUE,
format_headers = TRUE,"/Users/Desktop/mat.xlsx")