Description Usage Arguments Value Examples
View source: R/groupDuplicatedUtil.R
Manage/remove duplicated values in a table
1 | groupDuplicatedUtil(x, col = 1, fun = "median")
|
x |
A numeric table (data.frame or array). |
col |
The column to be checked for duplicated values. |
fun |
The function to process duplicated values. |
x with duplicated values processed.
1 2 3 4 | ex <- data.frame(x=c(1,-2,3,4,-2,4), y = c(10,11,10,12,13,11))
ex1 = groupDuplicatedUtil(ex); print(ex1)
groupDuplicatedUtil(ex1, col = 2)
groupDuplicatedUtil(ex, col = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.