Description Usage Arguments Value Examples
View source: R/data_process_tools.R
Loop Function.
#' loop_function
is an iterator to loop through
1 2 3 4 5 6 7 8 |
func |
A function. |
args |
A list of argauments required by function. |
x_list |
Names of objects to loop through. |
bind |
Complie results, "rbind" & "cbind" are available. |
parallel |
Logical, parallel computing. |
as_list |
Logical, whether outputs to be a list. |
A data.frame or list
1 2 3 4 5 6 7 | dat = UCICreditCard[24:26]
num_x_list = get_names(dat = dat, types = c('numeric', 'integer', 'double'),
ex_cols = NULL, get_ex = FALSE)
dat[ ,num_x_list] = loop_function(func = outliers_kmeans_lof, x_list = num_x_list,
args = list(dat = dat),
bind = "cbind", as_list = FALSE,
parallel = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.