Duplicates rows and columns of a given a data frame.
duplicateRow(x, id.el = 1, times = 1, append = FALSE) duplicateCol(x, id.el = 1, times = 1, append = FALSE)
| x | a data frame. |
|---|---|
| id.el | identity of the elements to be duplicated. |
| times | number of times elements are duplicated. Could be a vector of the same length as |
| append | A logical. If |
returns a data frame with duplicated rows.
duplicateCol: returns a data frame with duplicated columns.