Stack Overflow's Greatest Hits
Helper functions collected from StackOverflow.com, a question and answer site for professional and enthusiast programmers.
Multi-line Comments
Calculate mode (most common element) of a vector
Tarone's Z Test
Approximate AUC
Approximate CDF of Dirichlet
Multi-indicators / "Bag o Words"
Bat passes
Efficient binary search for character vectors
Calculate Body Mass Index
Split a vector into n chunks
Clamp a value into a range
List all methods for an object
Replace NAs in parallel vectors
Copy objects from one environment to another
Back transform correlation matrix to variance-covariance matrix
Find duplicates in a vector
Flatten a list without type coercion
Find efficient frontier
Evaluate Polynomial and Rational Functions using Horner's method
Split an interaction'ed factor back into seperate variables
Convert indices to logical vector
Log-Likelihood for k-means clustering (for calculating AIC and BIC)
Improved list of objects
Argument matching with defaults
Handle Missing Values with Fill + Dummy
Parse LDAP output into dataframe
Partially apply a function
Generate all distinct permutations of a vector
Sample rows from a dataframe or matrix
Distribution methods for density objects
Wait for a keypress
Reflect upper/lower triangle across diagonal
Replace NULLs in nested lists
Resave a session
Recursivly split a data.frame
sin/cos pairs for modeling
Split paths into folders
sprintf, with named references
Reverse each string of a vector
Substitute on an expression in a value
Transpose a list-of-lists
Strip leading / trailing zeros
Remove duplicated columns
Reverse a scale
Zip / Enumerate from python
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.