R: How to split a data frame into training, validation, and test sets? R: How to split a data frame into training, validation, and test sets? r r