View source: R/nonRedundLines.R
nonRedundLines | R Documentation |
nonRedundLines
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, callFrom = NULL)
dat |
(matrix or data.frame) main input |
callFrom |
(character) allow easier tracking of message(s) produced |
matrix (or data.frame) without repeated lines (keep 1st occurance)..
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.