remove_duplicated: Remove Duplicated Observations

Description Usage Arguments Value Examples

View source: R/data_cleansing.R

Description

remove_duplicated is the function to remove duplicated observations

Usage

1
2
3
4
5
6
7
remove_duplicated(
  dat = dat,
  obs_id = NULL,
  occur_time = NULL,
  target = NULL,
  note = FALSE
)

Arguments

dat

A data frame with x and target.

obs_id

The name of ID of observations. Default is NULL.

occur_time

The name of occur time of observations.Default is NULL.

target

The name of target variable.

note

Logical.Outputs info.Default is TRUE.

Value

A data.frame

Examples

1
2
3
datss = remove_duplicated(dat = UCICreditCard,
target = "default.payment.next.month",
obs_id = "ID", occur_time =  "apply_date")

creditmodel documentation built on Jan. 7, 2022, 5:06 p.m.