search for: listoftrips

Displaying 1 result from an estimated 1 matches for "listoftrips".

2009 Sep 22
1
matching pairs regardless of order,multiple matches
Dear Jim and Henrique, thank you both for your help. I have done this but run into another problem: ? In the example?below "loc1,loc2" occurs in the (now correct, thanks to your advice) "list" twice. ? ? trips=("loc1,loc2","loc2,loc3") ? DF$listoftrips=("loc1,loc2", "loc1,loc3", "loc2,loc3","loc1,loc2"). ? I?am now?using? ? DF$Data[match(trips,listoftrips)] to get Data associated with the trips listed in "trips". ? My problem is that multiple matches occur and match() seems to yield only the fir...