R data processing file