Tag: Group numbers in R

  • How to categorize numbers in R

    How to categorize numbers in R

    Here is my approach on how to categorize numbers by user-defined groups with R. When you have a few predictable groups, you can use the ifelse function. But sometimes, there is a long list of numbers that are changing over time.