Skip to contents

A dataset containing geographical and regional information for US states.

Usage

us_states

Format

A tibble with 50 rows and 7 variables:

state_name

Character. The full name of the US state (e.g., "Alabama").

state_abbreviation

Character. The two-letter postal abbreviation (e.g., "AL").

state_area

Numeric. The total land area of the state in square miles.

state_center_x

Numeric. The x-coordinate (longitude) of the geographic center of the state.

state_center_y

Numeric. The y-coordinate (latitude) of the geographic center of the state.

state_division

Factor. The US Census Bureau division classification (e.g., "South Atlantic").

state_region

Factor. The US Census Bureau region classification (e.g., "South").

Source

Data sourced from base R datasets: state.name, state.abb, state.area, state.center, state.division, and state.region.

Details

The dataset provides basic geographic and classification information about each US state. It includes area measurements, geographic center coordinates, and census region classifications.

Examples

data(us_states)
head(us_states)
#> # A tibble: 6 × 7
#>   state_name state_abbreviation state_area state_center_x state_center_y
#>   <chr>      <chr>                   <dbl>          <dbl>          <dbl>
#> 1 Alabama    AL                      51609          -86.8           32.6
#> 2 Alaska     AK                     589757         -127.            49.2
#> 3 Arizona    AZ                     113909         -112.            34.2
#> 4 Arkansas   AR                      53104          -92.3           34.7
#> 5 California CA                     158693         -120.            36.5
#> 6 Colorado   CO                     104247         -106.            38.7
#> # ℹ 2 more variables: state_division <fct>, state_region <fct>