Skip to content

Instantly share code, notes, and snippets.

@dsparks
Created February 10, 2011 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsparks/819705 to your computer and use it in GitHub Desktop.
Save dsparks/819705 to your computer and use it in GitHub Desktop.
A couple of functions whose names I have trouble remembering
# run length encoding, or counting streaks
rle
# combinations, combinatorics, n choose k
combn
# allows you to dump an object in the form of R code
dput
# modulo
x %% y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment