Select Columns by Name in R
When analyzing a data set, sometimes you want to select columns (or variables) by name. This post shares several methods for selecting columns from a data frame by name in the R environment…
Select Columns of a Specific Type in R
When analyzing a data set, sometimes you only want to include columns with a certain data type…
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…