groupDuplicatedUtil: Manage/remove duplicated values in a table

Description Usage Arguments Value Examples

View source: R/groupDuplicatedUtil.R

Description

Manage/remove duplicated values in a table

Usage

1
groupDuplicatedUtil(x, col = 1, fun = "median")

Arguments

x

A numeric table (data.frame or array).

col

The column to be checked for duplicated values.

fun

The function to process duplicated values.

Value

x with duplicated values processed.

Examples

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)

mathphysmx/bernstein documentation built on Sept. 3, 2019, 12:57 p.m.