spatial_initial_split: Simple Training/Test Set Splitting for spatial data
Description
spatial_initial_split creates a single binary split of the data into a
training set and testing set. All strategies from the package spatialsample
are available; a random split from that strategy will be used to generate the
initial split.
The proportion of data to be retained for modelling/analysis.
This parameter is used to define the appropriate number of partitions for
the selected strategy. For example, if prop = 0.2, then 5 partitions
will be created and one of these will be used as the testing set. Set to
NULL for leave-one-out crossvalidation.