character or NULL. If not NULL, either "WKT" or "HEX", to get the geometry included in Well-Known-Text or hexadecimal notation. If x has point geometry, it can also be "XY" to add the coordinates of each point
xy
logical. If TRUE, the coordinates of each raster cell are included
cells
logical. If TRUE, the cell numbers of each raster cell are included
na.rm
logical. If TRUE, cells that have a NA value in at least one layer are removed. If the argument is set to NA only cells that have NA values in all layers are removed