wranglR.r -- main function

See readme.txt for usage