as.raster function

Generic Method for Converting Objects to Raster Format