> -----Original Message-----
> From: Phil Spector [mailto:[EMAIL PROTECTED] 
> 
> How about something like:
> 
> tstreet = table(STREET)
> collapsestreets = names(tstreet[tstreet <= 15])
> STREET[STREET %in% collapsestreets] = 'OTHER'

Thanks a lot!

This is exactly what I want.  I had a feeling my way to use a for() loop
was rather silly....;D

Kevin

--------------------------------------------
Ko-Kang Kevin Wang, MSc(Hon)
Statistics Workshops Co-ordinator
Student Learning Centre
University of Auckland
New Zealand

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to