Skip to content
Prev 308093 / 398503 Next

uniq -c

Sam Steingold <sds at gnu.org> writes:
The count.rows() function is the R analogue.

See

http://orgmode.org/worg/org-contrib/babel/examples/Rpackage.html#sec-6-1


No need to install the package - just copy and paste the function into an
R session.

On cases I've tried that are big enough to matter, it is a good deal
faster than the table( do.call( paste, x )) idiom.

HTH,

Chuck