Skip to content
Prev 44941 / 398530 Next

Collapsing Categorical Variables

Ko-Kang Kevin Wang wrote:

            
How about:

tab <- table(STREET)
small <- names(tab[tab < 15])
st <- ifelse(STREET %in% small, "Other", STREET)

/untested

-sundar