Try using aggregate( ) -- View this message in context: http://n4.nabble.com/counts-of-elements-in-vector-tp1704036p1710369.html Sent from the R help mailing list archive at Nabble.com.