I want to make numeric values into quantile categories in R and until now I used
ntile
function. But I am pretty not sure how this function calculate quantile values like it possesses outliers too or not. Is there any other way to eliminating outliers when obtaining quantile values, please let me know.