In R, match function for rows or columns of matrix

前端 未结 5 579
走了就别回头了
走了就别回头了 2020-12-31 23:06

The value matching function in R is very useful. But from my understanding, it does not sufficiently support two or high dimensional inputs.

For examp

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-31 23:49

    The function row.match in the package prodlim allows you to identify the rows in one matrix that are also found (identical) in another matrix. Very convenient and easy to use.

    library(prodlim)
    row.match(x,y)
    

提交回复
热议问题