I am working with airline data. Each observation in the data is a ticket, which provides the route, carrier, price, among other things.
I want to capture and keep all tickets on routes that were serviced by a certain airline (let's say United).
So if United services a certain route, let's say LAX-SFO, then I want to keep all tickets from all airlines from LAX-SFO.
And then I want to discard all tickets from routes that aren't serviced by United.
How can I do so?
I want to capture and keep all tickets on routes that were serviced by a certain airline (let's say United).
So if United services a certain route, let's say LAX-SFO, then I want to keep all tickets from all airlines from LAX-SFO.
And then I want to discard all tickets from routes that aren't serviced by United.
How can I do so?
Comment