Sunday, July 6, 2014

R - pad left side of a string with a number or character

  • lpad (oracle) equivalent
> sprintf("F%04d",13)
[1] "F0013"

No comments :

Post a Comment