rmDuplCols {Orcs} | R Documentation |
Remove Duplicated Columns from data.frame
Description
Automatically detect and remove columns from a data.frame
based on
duplicated headers.
Usage
rmDuplCols(x, keep_first = TRUE, ...)
Arguments
x |
Input |
keep_first |
A |
... |
Currently not in use. |
Value
Revised data.frame
.
Author(s)
Florian Detsch
See Also
Examples
## sample data
set.seed(123)
dat <- data.frame(matrix(rnorm(28), nc = 7))
names(dat) <- c("Col1", "Col1", "Col1", "Col2", "Col3", "Col3", "Col4")
dat
rmDuplCols(dat)
rmDuplCols(dat, keep_first = FALSE)
[Package Orcs version 1.2.3 Index]