This question has been addressed previously using the Console.writelines function, but this is not available in my version of R and I can't find what package this belongs to.
I am simply trying to create a sequence of numbers from 0-99 with leading zeroes in the format "xxx", so my numbers should be 000, 001, 002... 099.
When I use:
seq(000:099)
R returns 1, 2, 3 etc.
Is there a simple way to do this? It strikes me that it should be far easier than it is.
This is different from previous answers as I need two zeroes in front of numbers 0-9 and just 1 zero in front of numbers 10-99 whereas the previous question just asked for 1 zero in front of all numbers.