New-ish to R, I have a question about data cleaning.
I have a column that contains what type of drive a car is - four wheel, all wheel, 2 wheel etc
The problem is there is no standardization, so some rows have 4 WHEEL drive, 4wd, 4WD, Four - Wheel - Drive, etc
The first step is easy, which is to uppercase everything but the step I'm having trouble with is changing each value to a standard, like 4WD, without having to recode each unique drive.
Something like For Each value in column, if value LIKE/CONTAINS "FOUR" change to "4WD".
I've researched recode and stringdist and mutate but I can't find a fit. When I typed it out it sounds like I need a loop but not sure the exact syntax.
If the solution could work with the tidyverse that would be great!