I am running for
loop. I have three for
loops in one chunk.
for(k in 01:12){
for (j in 01:31) {
for (i in 00:23) {
file = paste0("2017-", k ,"-", j ," ", i, "_00_00/Registrations.csv")
In this for
loop i
, j
and k
are taking values like 0,1,2,3,4,5,6,7,8,9,10,11,...
so on
I need to get these i
, j
and k
like 00,01,02,03,04,05,06,07,08,09,10,11,12...
and so on
How do I format these i
,j
and k
to get desired 2 digit values??
Thanks in advance.