Learn R Programming

creditmodel (version 1.0)

get_x_list: Get X List.

Description

get_x_list is for getting intersect names of x_list, train and test.

Usage

get_x_list(x_list = NULL, dat_train = NULL, dat_test = NULL,
  ex_cols = NULL)

Arguments

x_list

Names of independent variables.

dat_train

A data.frame with independent variables.

dat_test

Another data.frame.

ex_cols

A list of excluded variables. Regular expressions can also be used to match variable names. Default is NULL.

Value

A list contains names of variables

See Also

get_names

Examples

Run this code
# NOT RUN {
x_list = get_x_list(x_list = NULL,dat_train = UCICreditCard,
ex_cols = c("default.payment.next.month","ID$|_date$"))
# }

Run the code above in your browser using DataLab