head(murder_cases)
## case_id offender_race victim_race sentence ## 1 1 white white jail ## 2 2 black black jail ## 3 3 black black jail ## 4 4 black black jail ## 5 5 white black jail ## 6 6 black black jail
str(murder_cases)
## 'data.frame': 4898 obs. of 4 variables: ## $ case_id : int 1 2 3 4 5 6 7 8 9 10 ... ## $ offender_race: Factor w/ 2 levels "black","white": 2 1 1 1 2 1 1 1 1 1 ... ## $ victim_race : Factor w/ 2 levels "black","white": 2 1 1 1 1 1 1 1 1 1 ... ## $ sentence : Factor w/ 2 levels "death","jail": 2 2 2 2 2 2 2 2 2 2 ...