Arguments
obj
a matrix or data-frame. Each line corresponds to one
spatial location. It should contain values of
coordinates, data and, optionally, covariates at the locations.
coords.col
a vector with the column numbers corresponding to the
spatial coordinates.
data.col
a scalar or vector with column number(s) corresponding
to the data.
data.names
a string or vector of strings with names for
the data columns. Only valid if there is more than one column of
data.
By default, the names in the original object are used.
covar.col
optional. A scalar or vector
of the column number(s) corresponding to the covariate(s).
covar.names
a string or vector of strings with the name(s) of
the covariates. By default, the names in the original object are used.