I have a .csv
file that contains 50 columns including text, numbers, amount and percentage. when I am exporting data to .xlsx
in r all amount and percentage columns are converted to text. Any help?
my code below :
datafile <- choose.files("", caption = " Select files ")
data <- read.csv(datafile, header = TRUE, sep = "," )
write.xlsx(data, file = "abc.xlsx" , sheetName = "UtilizationReportGRE", row.names = F)