newDataPartition
createDataPartition
renameDataPartition
none of the mentioned
Answer is Wrong!
Answer is Right!
The correct answer is A. newDataPartition.
The newDataPartition function creates a new partition of a data frame by randomly splitting the rows into two groups. The groups are of equal size, unless the specified
0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/>
Subscribe on YouTube
fraction argument is used to specify a different split ratio.
The createDataPartition function creates a new partition of a data frame by randomly splitting the rows into two groups. The groups are not necessarily of equal size.
The renameDataPartition function renames the groups of a data frame that was created using the newDataPartition or createDataPartition function.
Therefore, the only function that can be used to create balanced splits of the data is newDataPartition.