Added analysis script for R.