Stack Overflow's Greatest Hits

Helper functions collected from, a question and answer site for professional and enthusiast programmers.

An R package for snippets from stackoverflow

When we want to use a function from stack overflow, add it here. It's cleaner, gives credit where credit is due, and is better for lawyers if it's seperate.


Using R 3.3.1 or greater:



If you see something great on SO, please email me with a link at [email protected] ; alternatively, PRs are always welcome as well :)


stackoverflow 0.1.4

This release adds the following functions:

  • Inverses of which and interaction

stackoverflow 0.1.3

This release adds the following functions:

  • distribution functions for density objects

  • partial function evaluation / currying

  • a log-likelihood function for kmeans objects

  • resave a dataset

  • clone environments

stackoverflow 0.1.2

This release only changes package metadata:

stackoverflow 0.1.1


  • bsearch7() provides a fast binary search for lower bound; supports character vectors.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.7.0 by Neal Fultz, 2 years ago

Browse source code at

Authors: Neal Fultz <[email protected]> and the community

Documentation:   PDF Manual  

CC BY-SA 4.0 license

Imported by dCUR, latrend.

See at CRAN