I want this c(002, 005/010)
to become c("002", "005/010")
.
as.character(c(002, 005/010))
doesn't work, as it returns c("2", "0.5")
So I need to keep any leading zeros (including the 005
and 010
in the example), and I want to convert to character without first performing that calculation (perhaps I can first sub the /
with ws...)
The actual values are from much longer text files of csvs, e.g.
047126002/047126003/047126004/047126005, 047016064, 047033008,
047265002, 047325004, 047265004, 047265003, 047033010,
047082004/047082005, 047058002, 047016030, 047320007, 047313005, ...