Snippets of Code
Scrapbook of useful code snippets I found while working on projects.
Thursday, July 31, 2014
Testing if an item exists in a list
To check if an item exists in a list in R, use
%in%
. This is handy for handling option lists inputs for a function.
"item" %in% list
Tuesday, July 1, 2014
A unified HTML5 audio player
aTagPlayer is an HTML5+JS+CSS3 audio player that adds audio players "in-place".
Check it out at
http://ccrma.stanford.edu/~hskim08/atagplayer/
.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)