search for: possmatch1

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

2011 May 05
3
factors
...A and B. Each of them has a column containing strings (they're labels). I want to, one-by-one in a loop, compare the particular string in an entry from dataframe A to an entry in B, to see if they're the same. The problem, when posing the question: searchID1 <- A[['label']][i] possMatch1 <- B[['label']][j] searchID1 == possMatch1 I get the error: Error in Ops.factor(searchID1, possMatch1) : level sets of factors are different I presume this is because the set of possible values in the 'labels' columns, respectively in A and B, differ. In my case, I'm no...