Description Usage Arguments Value Examples
View source: R/data_transformation.R
ranking_percent_proc is for processing ranking percent variables.
ranking_percent_dict is for generating ranking percent dictionary.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ranking_percent_proc(
  dat,
  ex_cols = NULL,
  x_list = NULL,
  rank_dict = NULL,
  pct = 0.01,
  parallel = FALSE,
  note = FALSE,
  save_data = FALSE,
  file_name = NULL,
  dir_path = tempdir(),
  ...
)
ranking_percent_proc_x(dat, x, rank_dict = NULL, pct = 0.01)
ranking_percent_dict(
  dat,
  x_list = NULL,
  ex_cols = NULL,
  pct = 0.01,
  parallel = FALSE,
  save_data = FALSE,
  file_name = NULL,
  dir_path = tempdir(),
  ...
)
ranking_percent_dict_x(dat, x = NULL, pct = 0.01)
 | 
| dat | A data.frame. | 
| ex_cols | Names of excluded variables. Regular expressions can also be used to match variable names. Default is NULL. | 
| x_list | A list of x variables. | 
| rank_dict | The dictionary of rank_percent generated by  | 
| pct | Percent of rank. Default is 0.01. | 
| parallel | Logical, parallel computing. Default is FALSE. | 
| note | Logical, outputs info. Default is TRUE. | 
| save_data | Logical, save results in locally specified folder. Default is FALSE | 
| file_name | The name for periodically saved rank_percent data file. Default is "dat_rank_percent". | 
| dir_path | The path for periodically saved rank_percent data file Default is "tempdir()" | 
| ... | Additional parameters. | 
| x | The name of an independent variable. | 
Data.frame with new processed variables.
| 1 2 3 4 | rank_dict = ranking_percent_dict(dat = UCICreditCard[1:1000,],
x_list = c("LIMIT_BAL","BILL_AMT2","PAY_AMT3"), ex_cols = NULL )
UCICreditCard_new = ranking_percent_proc(dat = UCICreditCard[1:1000,],
x_list = c("LIMIT_BAL", "BILL_AMT2", "PAY_AMT3"), rank_dict = rank_dict, parallel = FALSE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.