If you intend to use it with Excel, I think it is better to convert to .xlsx instead of .csv to avoid incompatibility.
if(!require("xlsx")){
install.packages("xlsx")
}
xlsx::write.xlsx(x = exampledf, file = "exampledf.xlsx", row.names = FALSE)
That should do the trick.