Tidyverse Difference: selective examples

readr

https://readr.tidyverse.org/

function package df v Tibble string default parsers notes
read_csv readr (tidyverse) Tibble character dates, times, currencies, percentages, … faster
read.csv base R standard df strings as factors it’s fine.

Tibbles v standard Data Frames

See Grolemund’s & Wickham’s R for Data Science

Chapter 11, Tibbles
or https://tibble.tidyverse.org/

  • consistent with tidyverse
  • easier viewing (paging)
  • simple to convert back and forth: as.data.frame() and dplyr::as_tibble()
  • Tibbles can be created row-wise: dplyr::tribble()
my_rowwise_tibble <- dplyr::tribble(
  ~name, ~color, ~amount,
  "circle", "red", 13.6,
  "square", "blue", 7
)

my_rowwise_tibble

Cheat Sheets

RStudio > Help > Cheatsheats > …

https://www.rstudio.com/resources/cheatsheets/

Other Workshop Topics

Git / GitHub

  • Reproducibility: RStudio and Git (Sep 25, 2018 — 10:00 AM) registration | Guide | Video
  • GitHub and GitLab (Oct 16, 2018 — 10:00 AM) registration | guide and video (see above)

Pandas (python)

Shiny

Spark

https://spark.rstudio.com/

See Also / See Especially the very useful RStudio Webinar Series

Large Data

See notes from Michael Akande’s DataFest 2018 presentation on large data notebook.