prepareData(x, p, b, factors, xy=FALSE)
TRUE
, the first two columns of the returned data.frame will be the coordinates of p and b (labeled 'x' and 'y')nlayers(x)+1
columns and nrow(p) + nrow(b)
rows. The first column, 'pb' indicates whether a record represents presence '1' or background '0' values. The other columns have the values from the Raster* object.