The functions defined here are methods for the generic
unstack
. The functions expect a spatial object
x
which has several columns of marks; they separate the columns,
and return a list of spatial objects, each having only one column of marks.
If x
has several columns of marks (i.e. marks(x)
is a
matrix, data frame or hyperframe with several columns),
then y <- unstack(x)
is a list of spatial objects, each of the same
kind as x
. The j
th entry y[[j]]
is equivalent to
x
except that it only includes
the j
th column of marks(x)
.
If x
has no marks, or has only a single column of marks,
the result is a list consisting of one entry, which is x
.