nonRedundLines: Non-Redundant Lines Of Matrix

View source: R/nonRedundLines.R

nonRedundLinesR Documentation

Non-Redundant Lines Of Matrix

Description

This function reduces complexity of matrix (or data.frame) if multiple consectuive (!) lines with same values. Return matrix (or data.frame) without repeated lines (keep 1st occurance)

Usage

nonRedundLines(dat, silent = FALSE, debug = FALSE, callFrom = NULL)

Arguments

dat

(matrix or data.frame) main input

silent

(logical) suppress messages if TRUE

debug

(logical) additional messages for debugging

callFrom

(character) allows easier tracking of messages produced

Value

This function returns a matrix (or data.frame) without repeated lines (keep 1st occurance)..

See Also

firstLineOfDat, firstOfRepLines, findRepeated, firstOfRepeated, get1stOfRepeatedByCol, combineRedBasedOnCol, correctToUnique

Examples

mat2 <- matrix(rep(c(1,1:3,3,1),2),ncol=2,dimnames=list(letters[1:6],LETTERS[1:2]))
nonRedundLines(mat2)

wrMisc documentation built on March 9, 2026, 5:07 p.m.