I am having trouble phrasing this right and would appreciate any editing.
I have a data frame
that looks something like this, showing operators of various satellites:
Operator Satellite
United SAT1
American SAT2
United SAT1
United SAT3
American SAT3
American SAT5
Delta SAT1
United SAT8
I am trying to get a data frame
that gives me the entries where, for satellites that were operators by more than one operator, listing both variables:
Operator Satellite
United SAT1
United SAT1
Delta SAT1
United SAT3
American SAT3
The only way I've been able to map this problem is to use a which(file$operator)
loop, but that seems like an unnecessarily cumbersome approach.
I'd appreciate any help and don't have a preference for any packages
. Thank you in advance.