powered by
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)
nonRedundLines(dat, silent = FALSE, debug = FALSE, callFrom = NULL)
This function returns a matrix (or data.frame) without repeated lines (keep 1st occurance)..
(matrix or data.frame) main input
(logical) suppress messages if TRUE
TRUE
(logical) additional messages for debugging
(character) allows easier tracking of messages produced
firstLineOfDat, firstOfRepLines, findRepeated, firstOfRepeated, get1stOfRepeatedByCol, combineRedBasedOnCol, correctToUnique
firstLineOfDat
firstOfRepLines
findRepeated
firstOfRepeated
get1stOfRepeatedByCol
combineRedBasedOnCol
correctToUnique
mat2 <- matrix(rep(c(1,1:3,3,1),2),ncol=2,dimnames=list(letters[1:6],LETTERS[1:2])) nonRedundLines(mat2)
Run the code above in your browser using DataLab