I've quite recently started utilizing R and I don't know how to incorporate my dataset with the following example code:
sample(x, size, replace = FALSE, prob = NULL)
I have a dataset that I need to place into a training (75%) and testing (25%) set. I don't know what information I should place into the x and size? Is x the dataset file, and size what number of samples I have?