I have a table that stores prefixes of different lengths.. snippet of table(ClusterTable)
ClusterTable[ClusterTable$FeatureIndex == \"Prefix2\",\'Feat
You have to modificate your column using format:
format
format(your_data$your_column, trim = F)
So when you export to .csv then leading zeros will keep on.