I am trying to build some machine learning models,
so i need a training data and a validation data
so suppose I have N number of examples, I want to select rando
from the raster package:
raster
raster::sampleInt(242, 10, replace = FALSE) ## 95 230 148 183 38 98 137 110 188 39
This may fail if the limits are too large:
sample.int(1e+12, 10)