Code
library(tidyverse)
::opts_chunk$set(echo = TRUE) knitr
Matt Eckstein
March 1, 2023
These data were likely gathered from a survey of occupations across geographies conducted by a federal agency such as the Bureau of Labor Statistics.
Each case is a county in the United States with at least one railroad worker. (The state and county columns are both essential for defining a case, since some county names occur in more than one state, and the state column is necessary for disambiguation.) The total_employees column indicates the number of railroad employees in the relevant county.
---
title: "Challenge 1"
author: "Matt Eckstein"
desription: "Challenge 1 - Analysis of 2012 railroad data"
date: "03/01/2023"
format:
html:
toc: true
code-fold: true
code-copy: true
code-tools: true
categories:
- challenge_1
- Matt Eckstein
- railroad_2012_clean_county.csv
---
## Configuration
```{r}
#| label: setup
#| warning: false
library(tidyverse)
knitr::opts_chunk$set(echo = TRUE)
```
## Loading the file and viewing the information in it:
```{r}
railroad_data <- read.csv("_data/railroad_2012_clean_county.csv")
head(railroad_data)
summarize(railroad_data)
```
## Looking at the data
These data were likely gathered from a survey of occupations across geographies conducted by a federal agency such as the Bureau of Labor Statistics.
Each case is a county in the United States with at least one railroad worker. (The state and county columns are both essential for defining a case, since some county names occur in more than one state, and the state column is necessary for disambiguation.) The total_employees column indicates the number of railroad employees in the relevant county.