remove_duplicated {creditmodel}R Documentation

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

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

[Package creditmodel version 1.3.1 Index]