rc_by_capital: Search by Capital City

View source: R/restcountries_api.R

rc_by_capitalR Documentation

Search by Capital City

Description

rc_by_capital() is used to search the restcountries restful API by the name of the city or town exercising primary status in a country, state, province or other administrative region, usually as its seat of government.

Usage

rc_by_capital(city)

Arguments

city

Vector(character) of the capital city of the country you will like to search for.

Examples

## Not run: 
x <- rc_by_capital('Abuja')
x

## End(Not run)

denironyx/countries documentation built on July 9, 2024, 5:20 a.m.