The following table describes some other useful functions for Chapter 2, Data Cleaning:
Function |
Description |
|
These are the functions to perform type conversion, such as |
|
This is used on an R object to determine the data type that the object is stored as. |
|
This reveals the encoding scheme that is used in storing the object. |
|
These are the functions in the base R package that use regular expressions to find instances of a search string. |
|
This is the function in the base R package that allows for global substitution of a string with another. |
|
This is a function to impute a vector of values based on the average of existing values. This is used with |
|
This downloads and installs packages that are not included in Base R from CRAN-like repositories. |
|
This finds |
|
These are used to determine the number of rows or columns in a data frame. |
|
This is the underlying function of all other |
|
This is useful for reading data that is raw text that is not in a tabular format. |
|
This is useful when manipulating text data by splitting a string into substrings based on a separator value provided. |