library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
data("starwars")
starwars
## # A tibble: 87 × 14
##    name     height  mass hair_color skin_color eye_color birth_year sex   gender
##    <chr>     <int> <dbl> <chr>      <chr>      <chr>          <dbl> <chr> <chr> 
##  1 Luke Sk…    172    77 blond      fair       blue            19   male  mascu…
##  2 C-3PO       167    75 <NA>       gold       yellow         112   none  mascu…
##  3 R2-D2        96    32 <NA>       white, bl… red             33   none  mascu…
##  4 Darth V…    202   136 none       white      yellow          41.9 male  mascu…
##  5 Leia Or…    150    49 brown      light      brown           19   fema… femin…
##  6 Owen La…    178   120 brown, gr… light      blue            52   male  mascu…
##  7 Beru Wh…    165    75 brown      light      blue            47   fema… femin…
##  8 R5-D4        97    32 <NA>       white, red red             NA   none  mascu…
##  9 Biggs D…    183    84 black      light      brown           24   male  mascu…
## 10 Obi-Wan…    182    77 auburn, w… fair       blue-gray       57   male  mascu…
## # ℹ 77 more rows
## # ℹ 5 more variables: homeworld <chr>, species <chr>, films <list>,
## #   vehicles <list>, starships <list>

Question 1

87 rows and 14 columns

Question 2

Column 2: Numerical Column 3: Numerical Column 4: Categorical, un-ordered, non-binary Column 5: Categorical, un-ordered, non-binary Column 6: Categorical, un-ordered, non-binary

summary(starwars$height)
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
##    66.0   167.0   180.0   174.6   191.0   264.0       6

Question 3

6 have unknown height.

summary(starwars$mass)
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
##   15.00   55.60   79.00   97.31   84.50 1358.00      28

Question 4

28 have unknown weight.

Question 5

Mean: 174.6 Median: 180

Question 6

hist(  starwars$height,  col = "gold", xlab = "Height of characters (in centimeters)" )

Question 7

Uni modal

Question 8

Slightly left skewed

Question 9

Median because there are outliers and the shape of the graph is not symetric.

Question 11

boxplot(starwars$height, col = "red", xlab = "Height of characters (in centimeters)", horizontal = TRUE)

Question 12

Median

Question 13

Many outliers more outliers on the shorter side rather than the taller side.

Question 14

boxplot(starwars$mass, col = "blue", xlab = "Mass of characters (in kilograms)", horizontal = TRUE)

Question 15

Jabba Desilijic Tiure was the outlier

Question 16

191-167=24 24

Question 17

For the box plot we can see the outliers and estimate the 5 number summary. for the histogram we can see the shape, spread, and how many modes.