Chapter 2 - Data Cleaning

The following table describes some other useful functions for Chapter 2, Data Cleaning:

Function

Description

as.character(); as.factor(); as.logical()

These are the functions to perform type conversion, such as as.numeric() seen in Chapter 2, Data Cleaning.

class()

This is used on an R object to determine the data type that the object is stored as.

encoding()

This reveals the encoding scheme that is used in storing the object.

grepl(); grep()

These are the functions in the base R package that use regular expressions to find instances of a search string.

gsub()

This is the function in the base R package that allows for global substitution of a string with another.

impute(x, fun = mean)

This ...

Get Introduction to R for Business Intelligence 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.