Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rmDupl2colMatr

Remove lines of matrix redundant /duplicated for 1st and 2nd column


Description

rmDupl2colMatr removes lines of matrix that are redundant /duplicated for 1st and 2nd column (irrespective of content of their columns). The first occurance of redundant /duplicated elements is kept.

Usage

rmDupl2colMatr(mat, useCol = c(1, 2))

Arguments

mat

(matrix or data.frame) main input

useCol

(integer, length=2) columns to consider/use when looking for duplicated entries

Value

matrix with duplictaed lines removed

See Also

Examples

mat <- matrix(1:12,ncol=3)
mat[3,1:2] <- mat[1,1:2]
rmDupl2colMatr(mat)

wrMisc

Analyze Experimental High-Throughput (Omics) Data

v1.5.4
GPL-3
Authors
Wolfgang Raffelsberger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.