string_pad function

string_pad

string_pad

Utility function used to replicate str_pad. Adds white space to either end of a string to get it to equal the desired length

string_pad(x, width)

Arguments

  • x: string
  • width: desired length