Learn R Programming

states (version 0.3.2)

prettyc: Shorten country names

Description

Shorten country names

Usage

prettyc(x)

Arguments

x

(character())
Country names, e.g. from country_names().

Examples

Run this code
cn <- c(
  "Macedonia, the former Yugoslav Republic of",
  "Congo, the Democratic Republic of the",
  "Tanzania, United Republic of")
prettyc(cn)

Run the code above in your browser using DataLab