Differentiate Training And Testing Datasets In R