R: Converting to Numeric 0,1

When using a dataset, sometimes I want to convert a column of two values (such as Gender) to numerical values like 0, 1. Let’s take this dataset.. It’s called “Mall_Customers” and it has a column called “Gender.” Gender has values like “Female” and “Male.” To subset the column from the … Continue reading R: Converting to Numeric 0,1