I\'m trying to under sample my data but I keep getting this error:
Error in sample.int(length(x), size, replace, prob) : cannot take a sample larger than t