The last couple of weeks we have been working with data frames. Data frames are the most common way of storing data in R and, generally, is the data structure most often used for data analyses; it is R’s version of an Excel spreadsheet. This module is going to put more focus on working with the other structures that hold data in R.
Specifically, you are going to learn:
Please work through the following tutorials prior to class.
Putting our focus back on data frames, a relatively new “modified” version of the data frame has been established and is referred to as a tibble. Tibbles are data frames, but they tweak some older behaviors to make life a little easier. Go ahead and read through the Managing Tibbles.
2. How to make your data “tidy”: The majority of our analyses will be for the purpose of studying a specific data frame/tibble. However, most functions require your data frame to be well organized and in a specific format. This may require you to manipulate the structure of your data (i.e. long vs. wide data) so that it is properly organized for the next activity. Read and work through Chapter 12: Tidy Data in R for Data Science to learn how to organize your data the “tidy” way.
Work through the exercises in each of the tutorials provided.