R write dataframe column to csv having leading zeroes

后端 未结 7 1108
故里飘歌
故里飘歌 2020-12-21 04:21

I have a table that stores prefixes of different lengths.. snippet of table(ClusterTable)

ClusterTable[ClusterTable$FeatureIndex == \"Prefix2\",\'Feat

7条回答
  •  孤城傲影
    2020-12-21 04:43

    You have to modificate your column using format:

    format(your_data$your_column, trim = F)
    

    So when you export to .csv then leading zeros will keep on.

提交回复
热议问题