Description Usage Arguments Value See Also Examples
View source: R/data_process_tools.R
get_names
is for getting names of particular classes of variables
1 2 3 4 5 6 7 |
dat |
A data.frame with independent variables and target variable. |
types |
The class or types of variables which names to get. Default: c('numeric', 'integer', 'double') |
ex_cols |
A list of excluded variables. Regular expressions can also be used to match variable names. Default is NULL. |
get_ex |
Logical ,if TRUE, return a list contains names of excluded variables. |
A list contains names of variables
1 2 3 4 | x_list = get_names(dat = UCICreditCard, types = c('factor', 'character'),
ex_cols = c("default.payment.next.month","ID$|_date$"), get_ex = FALSE)
x_list = get_names(dat = UCICreditCard, types = c('numeric', 'character', "integer"),
ex_cols = c("default.payment.next.month", "ID$|SEX "), get_ex = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.