I have a worksheet with 2 columns A and B as given in the image which have entries separated by a comma(,).
I want to compare these 2 rows cell by cell in R such that it returns 1 (TRUE) only when
- When all the entries match in both the rows
- The order is not considered while comparing(Row 5 in the image)
A sample expected output is given in the Result column of the image.
I have used the match command in R but it only returns 1 (True) for Row 2 and not Row 5, which has the same entries but in a different order.
Can someone suggest any package or function in R that will help me do that (preferably a solution where there are no loops)as I want to use this on a data set which has thousands of rows.
