This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' num_bkts should be a non-zero integer | |
#' col should contain numeric values | |
equi_bucket <- function(col, num_bkts){ | |
if(!is.numeric(col)){ | |
warning("Values passed to Equibucket are not numeric") | |
return(NA) | |
} | |
xmin = min(col, na.rm = TRUE) | |
eps = 1/(num_bkts-1) |
OlderNewer