'In R , how to write dataframe to csv file and keep columns not mixed

In R , there is dataframe as below, the amount 9046 in column total, but when i write it into csv file ,it show in other columns (i use readr::write_csv function)

Is there any advice about how to write dataframe to csv file and keep it not

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source