We have survey response data where people type in what brands come to mind when they think of travel. I am tracking 6 specific brands and need to create a separate column to flag out whenever someone responds with one of these brands.
My columns need to look like: Answer Value, Hotwire Flag, Expedia Flag, Priceline Flag, Booking.com Flag, Hotels.com Flag, Expedia Flag
Since the answer values are user submitted, there are all kinds of spelling variations (princeline, Price Line, Princessline, etc. for Priceline). How can I do a fuzzy filtering of each of these options to create the separate flag columns by brand?
I'm trying to do the equivalent of this type of sql query:
case when answer_value like %hot%wire% then 1 else 0 end as hotwire_flag
Thank you!