I am interested in finding out how to convert multiple columns in RStudio into two columns by finding every possible combination excluding null values. Here is sample input:
Mike Bill Pat Ty
Bob Bret Mike null
Dyl Ty null null
Here is sample output:
Mike Bill
Mike Pat
Mike Ty
Bill Pat
Bill Ty
Pat Ty
Bob Bret
Bob Mike
Bret Mike
Dyl Ty
Any help in solving this would be greatly appreciated. Thanks!