J_MaldonadoHW1.Rmd <- read.csv("C:/Users/Jomal/OneDrive/Desktop/Homework_1_Zombies.csv")
View(J_MaldonadoHW1.Rmd)
Female<-subset(J_MaldonadoHW1.Rmd,sex=="Female")
summary(Female)
## first_name last_name sex height
## Length:245 Length:245 Length:245 Min. :55.62
## Class :character Class :character Class :character 1st Qu.:63.17
## Mode :character Mode :character Mode :character Median :65.40
## Mean :65.49
## 3rd Qu.:67.77
## Max. :74.08
## weight zombies_killed years_of_education major
## Min. : 90.29 Min. :0.000 Min. :1.000 Length:245
## 1st Qu.:125.08 1st Qu.:2.000 1st Qu.:2.000 Class :character
## Median :134.89 Median :3.000 Median :3.000 Mode :character
## Mean :134.44 Mean :2.996 Mean :3.037
## 3rd Qu.:143.77 3rd Qu.:4.000 3rd Qu.:4.000
## Max. :168.92 Max. :9.000 Max. :7.000
## age
## Min. :17.00
## 1st Qu.:20.00
## Median :22.00
## Mean :22.33
## 3rd Qu.:25.00
## Max. :29.00
Male<-subset(J_MaldonadoHW1.Rmd,sex=="Male")
summary(Male)
## first_name last_name sex height
## Length:254 Length:254 Length:254 Min. :54.15
## Class :character Class :character Class :character 1st Qu.:67.20
## Mode :character Mode :character Mode :character Median :69.87
## Mean :69.61
## 3rd Qu.:72.37
## Max. :80.53
## weight zombies_killed years_of_education major
## Min. : 91.41 Min. :0.000 Min. :1.000 Length:254
## 1st Qu.:139.33 1st Qu.:2.000 1st Qu.:2.000 Class :character
## Median :150.99 Median :3.000 Median :3.000 Mode :character
## Mean :151.70 Mean :3.031 Mean :3.067
## 3rd Qu.:163.63 3rd Qu.:4.000 3rd Qu.:4.000
## Max. :200.72 Max. :9.000 Max. :8.000
## age
## Min. :17.00
## 1st Qu.:21.00
## Median :22.00
## Mean :22.38
## 3rd Qu.:24.00
## Max. :28.00
fivenum(Female$height,na.rm = T)
## [1] 55.622 63.171 65.403 67.771 74.081
fivenum(Male$height,na.rm=T)
## [1] 54.149 67.196 69.867 72.381 80.530
hist(J_MaldonadoHW1.Rmd$age)
Answer: The age does not appear to be normally distributed, as there is a significant amount of the participant that fall until the 20-21 age range in comparison to the rest of the participants