Learn R Programming

webmap (version 1.1.1)

us_cities: US Major Cities

Description

This dataset contains the locations of cities within the United States with populations of about 40,000 or greater, all state capitals, and the national capital.

Usage

us_cities

Arguments

Format

A data frame with columns:

name

City name

capital

Capital status code indicates whether a city is a capital or not. A value of 0 indicates that the city is not a capital, while a value of 1 indicates that the city is a capital. If the city is a state capital, the value is 2.

lng

Longitude in decimal degrees.

lat

Latitude in decimal degrees.

Examples

Run this code
str(us_cities)

Run the code above in your browser using DataLab