BoolFilter.Rcheck/00_pkg_src/BoolFilter/R/rowmatch.r

rowmatch <- function(A,B) { 
  # Rows in A that match the rows in B 
  f <- function(...) paste(..., sep=":") 
  if(!is.matrix(B)) B <- matrix(B, 1, length(B)) 
  a <- do.call("f", as.data.frame(A)) 
  b <- do.call("f", as.data.frame(B)) 
  match(b, a) 
} 
levimcclenny/BoolFilter documentation built on May 21, 2019, 5:11 a.m.