remove_duplicated {creditmodel} | R Documentation |
remove_duplicated
is the function to remove duplicated observations
remove_duplicated(
dat = dat,
obs_id = NULL,
occur_time = NULL,
target = NULL,
note = FALSE
)
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. |
A data.frame
datss = remove_duplicated(dat = UCICreditCard,
target = "default.payment.next.month",
obs_id = "ID", occur_time = "apply_date")