Relative Content

Tag Archive for rmachine-learningcaret

createDataPartition gives abnormally uneven test and train sets

I am trying to split my data into testing and training sets using package caret. I have 77 rows with complete data in each column. The function ‘createDataPartition’ results in 4 rows for training data and 73 rows for testing data, which doesn’t seem right. Any help would be appreciated. Here is my code: