[R] filter factors with min. freq

Christian Schulz ozric at web.de
Thu Aug 21 09:06:21 CEST 2003


Hi,

i use a data.frame with ~ 80.000 observations
and one attribute is a factor with
~ 7300 levels. Is there a easy step which allow
me to filter out the the data with minimum frequencies i.e. 20
cases per  level.
So existing levels with < 20 cases in this factor attribute  are deleted
from data.frame.

many thanks and regards,
christian




More information about the R-help mailing list