Basic Data Shaping
This lesson looks more closely at the R programming constructs needed to manipulate data. In particular, the lesson introduces the basic R functions necessary for cleaning data sets and converting them to storable structures ready for statistical analysis or predictive modeling.
Objectives
Upon completion of this lesson, you will be able to
Upon completion of this lesson, you will be able to
- demonstrate understanding of R data types
- create and manipulate R objects
- distinguish between vectors, data frames, matrices, arrays, and lists
- handle missing values
- process dates, text strings, and characters
Required Readings
- Chapter 3 in text book
Suggested Readings
- Yau, Chi. R Tutorial. Chapter on Data Frames.
- Dixon, Bonnie. Using Dates and Times in R. February 10, 2014.
- Galili, Tal & Grolemund, Garrett. Do More With Dates and Times in lubridate. March 16, 2012.
- Wickham, Hadley. stringr: Modern, Consistent String Processing. The R Journal, Volume 2/2, December 2010.
- The R Programming WikiBook, Chapter on Text Processing.
- The Regular Expression Builder at regex101.com.
- Bell, Rob. A Beginner's Guide to Big-O Notation.
- The Big-O Cheat Sheet: Know Thy Complexities.
- Time Complexity. Wikipedia.