Processed the data into R