pre-value for variable
I have a variable which data type is c(15), and which store the vendor code. It could be 4 digital, 5 digital and so on. I would like to concateneate zero and vendor code, but the vendor code is variants, the mechanism should be 15 - vendor code length. How can i fill the remaining to zero. Thanks!