to_spatial function

Convert a site-by-variable matrix into a SpatRaster or sf object