Is there a way to automate the process of categorizing like the function cut does when using sm.binning? https://i.stack.imgur.com/nwb5s.jpg
basically I want to have a new variable somehow that automatically puts it into the right category without right a bunch of nested ifelse statements.
Thanks!!