The tidyverse


The tidyverse is a miniature ecosystem within R which has certain coding conventions and tooling to make certain data analysis easier and prettier.

Most lucid explanation of everything is Hadley Wickham’s Advanced R book which is free and only“Advanced” in the sense that your knowledge of R will be advanced after reading it, not in the sense of being forbiddingly complicated for beginners.

Others:

  • purr

    A FP package for R in the spirit of underscore.js.

    (You may or may not consider that statement snark.)

  • magrittr brings a compose (“pipe”) operator to R, which looks like this: %>%. Here is a tutorial clarifyin why this is useful

Useful functions? Various joins like in real databses, notably semi_join pops up all the time.

The tidyverts

The time-series tidyverse is the tidyverts incorporating time series dataframse, generic mostly-linear prediction and explorations and other such stuff.

Reshaping

The names have changed and I need to document. spread, gather, pivot_wide, pivot_long etc.

wide and long intro. reshaping data using tidyr.