How To Categorize Multiple Numerical Columns in R

Categorize columns with across()

Recently I had to convert a numerical matrix into categorical ones based on some conditions. Obviously there are multiple ways to go about. One of the key functions to categorize a numerical vector in R is to use cut() function, that allows to specify the intervals to categorize a numerical variable. Till now I was… Continue reading How To Categorize Multiple Numerical Columns in R