initial R code

the 'format' file contains the beginning of a data formatting script.
The 'snippets' file contains loose bits of code that can be patched into
working scripts as needed.