- data
data.frame
containing at least the columns specified by
coords
- coords
vector of length 2 defining the variables in data
that
contain the x and y coordinates of sample locations
- dsplit
optional vector of length 2: equidistance of splits in
(possibly rotated) x direction (dsplit[1]
) and y direction (dsplit[2]
)
used to define tiles. If dsplit
is of length 1, its value is recycled.
Either dsplit
or nsplit
must be specified.
- nsplit
optional vector of length 2: number of splits in (possibly
rotated) x direction (nsplit[1]
) and y direction (nsplit[2]
) used to
define tiles. If nsplit
is of length 1, its value is recycled.
- rotation
indicates whether and how the rectangular grid should be
rotated; random rotation is only between -45
and +45
degrees.
- user_rotation
if rotation='user'
, angles (in degrees) by which the
rectangular grid is to be rotated in each repetition. Either a vector of
same length as repetition
, or a single number that will be replicated
length(repetition)
times.
- offset
indicates whether and how the rectangular grid should be
shifted by an offset.
- user_offset
if offset='user'
, a list (or vector) of two components
specifying a shift of the rectangular grid in (possibly rotated) x and y
direction. The offset values are relative values, a value of 0.5
resulting in a one-half tile shift towards the left, or upward. If this is
a list, its first (second) component refers to the rotated x (y) direction,
and both components must have same length as repetition
(or length 1). If
a vector of length 2 (or list components have length 1), the two values
will be interpreted as relative shifts in (rotated) x and y direction,
respectively, and will therefore be recycled as needed
(length(repetition)
times each).
- reassign
logical (default TRUE
): if TRUE
, 'small' tiles (as per
min_frac
and min_n
arguments and get_small_tiles) are merged with
(smallest) adjacent tiles. If FALSE
, small tiles are 'eliminated', i.e.
set to NA
.
- min_frac
numeric >=0, <1: minimum relative size of partition as
percentage of sample; argument passed to get_small_tiles. Will be ignored
if NULL
.
- min_n
integer >=0: minimum number of samples per partition; argument
passed to get_small_tiles. Will be ignored if NULL
.
- iterate
argument to be passed to tile_neighbors
- return_factor
if FALSE
(default), return a represampling object;
if TRUE
(used internally by other sperrorest functions), return a
list
containing factor vectors (see Value)
- repetition
numeric vector: cross-validation repetitions to be
generated. Note that this is not the number of repetitions, but the indices
of these repetitions. E.g., use repetition = c(1:100)
to obtain (the
'first') 100 repetitions, and repetition = c(101:200)
to obtain a
different set of 100 repetitions.
- seed1
seed1+i
is the random seed that will be used by set.seed in
repetition i
(i
in repetition
) to initialize the random number
generator before sampling from the data set.