powered by
..
zip5(x)
Function zip5 returns a character
vector of nchar-5.
character vector
Function zip5 converts all US zip codes to 5-digit.
zip5(c('14901', '41452-1423'))
Run the code above in your browser using DataLab