Acquire and Prepare the Ingredients - Your Data

In this chapter, we will cover:

  • Working with data
  • Reading data from CSV files
  • Reading XML data
  • Reading JSON data
  • Reading data from fixed-width formatted files
  • Reading data from R files and R libraries
  • Removing cases with missing values
  • Replacing missing values with the mean
  • Removing duplicate cases
  • Rescaling a variable to specified min-max range
  • Normalizing or standardizing data in a data frame
  • Binning numerical data
  • Creating dummies for categorical variables
  • Handling missing data
  • Correcting data
  • Imputing data
  • Detecting outliers

Get R Data Analysis Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.