In addition to head()
and tail()
, the glimpse()
function of the dplyr
package is another great function to look at your data.
glimpse(state_data)
Rows: 52
Columns: 14
$ entity <chr> "Alabama", "Alaska", "Arizona", "Arkansas",…
$ state_abb <chr> "AL", "AK", "AZ", "AR", "CA", "CO", "CT", "…
$ state_area_sq_miles <dbl> 51609, 589757, 113909, 53104, 158693, 10424…
$ state_division <chr> "East South Central", "Pacific", "Mountain"…
$ state_region <chr> "South", "West", "West", "South", "West", "…
$ population <dbl> 4903185, 731545, 7278717, 3017804, 39512223…
$ births_in_2021 <dbl> 58054, 9367, 77916, 35965, 420608, 62949, 3…
$ fertility_rate_per_1000 <dbl> 59.5, 64.9, 55.5, 61.7, 52.8, 52.5, 52.1, 5…
$ cesarean_percent <dbl> 35.1, 24.2, 28.7, 34.3, 30.8, 27.3, 35.4, 3…
$ life_expect <dbl> 73.2, 76.6, 76.3, 73.8, 79.0, 78.3, 78.4, 7…
$ cancer_rate_per_100000 <dbl> 160.2, 156.0, 134.7, 168.2, 132.4, 126.5, 1…
$ cancer_mortality <dbl> 10429, 1093, 12813, 6516, 59503, 8058, 6526…
$ Administered_Dose1_Pop_Pct <dbl> 64.8, 72.8, 77.1, 69.6, 84.3, 83.3, 95.0, 8…
$ Series_Complete_Pop_Pct <dbl> 53.0, 64.9, 65.8, 56.7, 74.4, 73.2, 82.8, 7…