added R script, data files and edited README