| ra_from_sp | R Documentation | 
Function to create a raster object from a spatial (vector) object.
ra_from_sp(
  sp,
  resolution,
  fun = mean,
  na.rm = TRUE,
  background = NA,
  drop_index = TRUE
)
sp | 
 Spatial object with a data slot.  | 
resolution | 
 Resolution of the returned raster object, optional.  | 
fun | 
 Function to determine how multiple observations in a single raster cell are handled.  | 
na.rm | 
 For   | 
background | 
 Cell's default value when there are no data within the cell.  | 
drop_index | 
 Should the index be dropped from the raster return?  | 
Raster layer or raster brick.
Stuart K. Grange
rasterize
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.