/explaining-tidy-data

Organizing data in R using tidy data

Primary LanguageHTML

Explaining Tidy Data

Hannah Luebbering

View Entire Tutorial Here:

https://hannahluebbering.shinyapps.io/tidy-tutorial/

Introduction

What is the tidyverse package?

  • The tidyverse package provides tidy tools and tidy data.

What do tidyverse tools do?

  • The package’s tools save us time and effort in data wrangling and altering.

  • Hence, the tools help tidy up cluttered datasets.

What is tidy data?

  • Tidy data is an organization in R that sorts data

  • Requires a particular format


Tidy Data

Recall: When organizing data sets, we can represent the underlying data in numerous ways depending on where we choose to format each values into rows and columns.

Why make your data tidy?

  1. A uniform and organized data structure makes it easier to figure out which tools work best with it.

  2. Placing variables in columns allows built-in R functions to work with vectors of the data and transform tidy data.

What makes a Dataset Tidy?

  1. Each variable must have its own column.

  2. Each observation must have its own row.

  3. Each value must have its own cell.