Skip to content
Prev 86363 / 398506 Next

indexing via a character matrix?

On Mon, 13 Feb 2006, Roger Levy wrote:

            
Numeric or logical.
What are you trying to do here?  One possibility is that you meant

comt.table[df2$A, df2$B]

and another is

ind1 <- match(df2$A, df1$A)
ind2 <- match(df2$B, df1$B)
cont.table[cbind(ind1, ind2)]

and I am not certain which.