search for: collapsestreet

Displaying 1 result from an estimated 1 matches for "collapsestreet".

Did you mean: collapsestreets
2004 Feb 26
3
Collapsing Categorical Variables
Hi, Suppose I have a categorical variable called STREET, and I have 30 levels for it (i.e. 30 different streets). I want to find all those streets with only 15 observations or below then collapse them into a level called OTHER. Is there a quick way, other than using a for() loop, to do it? Currently what I'm doing is something like: ### Collapse STREET (those < 15) st <- c()