Learn R Programming

creditmodel (version 1.3.1)

remove_duplicated: Remove Duplicated Observations

Description

remove_duplicated is the function to remove duplicated observations

Usage

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

Run this code
# NOT RUN {
datss = remove_duplicated(dat = UCICreditCard,
target = "default.payment.next.month",
obs_id = "ID", occur_time =  "apply_date")
# }

Run the code above in your browser using DataLab