10.36 A Glimpse of the Dataset

20180721 A useful alternative to gain some insight into the dataset is through dplyr::glimpse().

# A quick view of the contents of the dataset.

glimpse(weather)
## Rows: 366
## Columns: 24
## $ Date          <date> 2023-07-01, 2023-07-02, 2023-07-03, 2023-07-04, 2023-07…
## $ Location      <chr> "Canberra", "Canberra", "Canberra", "Canberra", "Canberr…
## $ MinTemp       <dbl> 4.6, -4.1, -3.3, 3.0, 7.4, -0.6, 2.5, 5.6, 6.2, 6.5, -2.…
## $ MaxTemp       <dbl> 13.9, 15.7, 13.4, 12.0, 15.0, 12.4, 11.8, 9.9, 11.8, 12.…
## $ Rainfall      <dbl> 0.0, 0.0, 0.2, 0.0, 2.8, 0.2, 0.2, 0.0, 4.4, 0.0, 0.0, 0…
## $ Evaporation   <dbl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, …
## $ Sunshine      <dbl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, …
## $ WindGustDir   <ord> NNW, SSW, SE, N, NW, N, NW, NW, NW, WNW, NW, N, NNW, WNW…
## $ WindGustSpeed <dbl> 37, 17, 15, 15, 41, 46, 50, 61, 50, 44, 44, 33, 30, 48, …
## $ WindDir9am    <ord> NW, NA, N, NA, NW, N, NNW, NNW, NNW, NNW, S, NA, NE, NA,…
## $ WindDir3pm    <ord> W, SSW, NNE, N, NW, NW, NW, NNW, WNW, WNW, NW, NW, NNW, …
## $ WindSpeed9am  <dbl> 15, 0, 7, 0, 19, 13, 22, 30, 28, 13, 6, 0, 6, 0, 35, 0, …
## $ WindSpeed3pm  <dbl> 13, 7, 6, 9, 22, 31, 31, 28, 33, 30, 26, 22, 20, 31, 24,…
## $ Humidity9am   <int> 86, 99, 92, 98, 96, 100, 90, 76, 84, 81, 93, 90, 100, 97…
## $ Humidity3pm   <int> 46, 37, 57, 96, 69, 61, 74, 86, 72, 61, 51, 51, 52, 47, …
## $ Pressure9am   <dbl> 1021.6, 1034.2, 1033.9, 1021.9, 1013.7, 1016.0, 1012.3, …
## $ Pressure3pm   <dbl> 1021.4, 1030.3, 1028.0, 1016.1, 1013.1, 1011.4, 1013.0, …
## $ Cloud9am      <int> 2, NA, NA, 8, 4, 8, 8, 7, NA, 8, NA, 7, 8, NA, NA, NA, 8…
## $ Cloud3pm      <int> NA, NA, 4, 8, NA, 2, 1, 7, NA, NA, NA, NA, NA, NA, 1, 1,…
## $ Temp9am       <dbl> 8.1, 2.1, 3.0, 7.4, 11.4, 2.5, 7.2, 7.9, 7.9, 9.1, 3.5, …
## $ Temp3pm       <dbl> 13.2, 15.6, 13.1, 11.5, 14.1, 10.9, 10.0, 7.6, 11.2, 11.…
## $ RainToday     <fct> No, No, No, No, Yes, No, No, No, Yes, No, No, No, No, No…
## $ RISK_MM       <dbl> 0.0, 0.2, 0.0, 2.8, 0.2, 0.2, 0.0, 4.4, 0.0, 0.0, 0.0, 0…
## $ RainTomorrow  <fct> No, No, No, Yes, No, No, No, Yes, No, No, No, No, No, No…

Again we receive a printed summary of the dataset, reporting on the number of observations and variables, but now the table is effectively rotated so that all variables can be listed along with their data type and a selection of their values for the first few observations.



If you find this curated material useful then you can consider a donation to support it's ongoing availability and give you access to the PDF version of this book. The material has been scoped up by Generative AI without permission or any kind of recompense so do consider a donation if you can afford it. Unlike Generative AI your access to this materials is freely given. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Togaware has a 30 year tradition of making popular open source software which includes sold privacy preserving productivity apps, rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0