Chapter 1:
R for Advanced Analytics

Learning Objectives

By the end of this chapter, you will be able to:

  • Explain advanced R programming constructs
  • Print the summary statistics of a real-world dataset
  • Read data from CSV, text, and JSON files
  • Write R markdown files for code reproducibility
  • Explain R data structures such as data.frame, data.table, lists, arrays, and matrices
  • Implement the cbind, rbind, merge, reshape, aggregate, and apply functions
  • Use packages such as dplyr, plyr, caret, tm, and many more
  • Create visualizations using ggplot

In this chapter, we will set the foundation for programming with R and understand the various syntax and data structures for advanced analytics.