get_x_list: Get X List.

Description Usage Arguments Value See Also Examples

View source: R/data_process_tools.R

Description

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

Usage

1
2
3
4
5
6
7
get_x_list(
  dat_train = NULL,
  dat_test = NULL,
  x_list = NULL,
  ex_cols = NULL,
  note = FALSE
)

Arguments

dat_train

A data.frame with independent variables.

dat_test

Another data.frame.

x_list

Names of independent variables.

ex_cols

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

note

Logical. Outputs info. Default is TRUE.

Value

A list contains names of variables

See Also

get_names

Examples

1
2
x_list = get_x_list(x_list = NULL,dat_train = UCICreditCard,
ex_cols = c("default.payment.next.month","ID$|_date$"))

Example output

Package 'creditmodel' version 1.2.7

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