I have a simple Excel file available for download here. The file contains two columns, but when I read the file and subsequently write it back to an .xlsx format, certain properties, especially the newline property in some rows, are lost.
Example Excel file:
I read the excel file using read_xlsx
:
library(readxl)
library(writexl)
df <- read_xlsx("./Excel Files/Test.xlsx", sheet = 1)
In the end if I write the xlsx:
write_xlsx(df,"Test2.xlsx")
Output of write xlsx:
Thank you for the help