Setting Missing Values When Importing Data
Missing values are a fact of data life. But when you know what values should be set to missing, you can make your life easier by specifying them before importing your data…
Removing Extra Spaces in a (Text) String
Extra spaces in text data are a common problem. This post shares three ways to remove (all) unwanted spaces in a text string in R…
Apply a Process to Multiple Data Sets
Data processing can be streamlined in the R environment when data files have the same variables and general structure…
Filtering by Multiple Conditions in R
Advanced filtering conditions can be specified using logical operators like AND, OR, and NOT. This post shows how to filter data by multiple criteria in the R environment.
The Fundamentals of Filtering in R
Filtering is the process of selecting rows or columns from a data set based on specific criteria. In this post, I provide a primer on how to subset data by a single condition in the R environment…
Recoding (Variable) Values in R
Recoding (variable) values is a common data cleaning task. In this post, I share several methods for quickly recoding the values of many variables in the R Environment…