Skip to contents

This function cleans the model of the vehicle. It extracts the make using extract_make_stats19 and removes it from the string, returning the remaining text as the model in title case.

Usage

clean_model(model)

Arguments

model

A character vector of generic make/model strings

Examples

clean_model(c("FORD FIESTA", "BMW 3 SERIES"))
#> [1] "Fiesta"   "3 Series"