Skip to content
Prev 305860 / 398502 Next

drop zero slots from table?

Here is one way:
+    tab <- table(x)
+    names(dimnames(tab)) <- name
+    tab <- tab[tab > 0]
+    sort(tab, decreasing=TRUE)
+ }
digits
0 8 2 6 4 5
9 4 3 2 1 1
DigitsColumn
0 8 2 6 4 5
9 4 3 2 1 1
My Digits
0 8 2 6 4 5
9 4 3 2 1 1

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com