pretty_numbers {parseRPDR} | R Documentation |
Converts numerical codes to universal format specified by length.
Description
Creates numerical strings with given lengths by removing additional characters from the back and adding leading zeros if necessary.
Usage
pretty_numbers(v, length_final = 5, remove_from_back = 4)
Arguments
v |
vector, integer or sting vector with numerical values. |
length_final |
numeric, the length of the final string. Defaults to 5 for zip code conversions. |
remove_from_back |
numeric, the number of digits to remove from the back of the string. If NULL, then removes characters from back more than specified in length_final. Defaults to 4 for zip code conversions by removing the add-on codes. |
Value
vector, with characters formatted accordingly.
[Package parseRPDR version 1.1.1 Index]