Learn R Programming

raster (version 1.8-3)

rasterizeObsolete: Obsolete

Description

Obsolete, see rasterize

Usage

pointsToRaster(raster, xy, values=1, fun, ...)
linesToRaster(lns, raster, field=0, overlap='last', ...)
polygonsToRaster(p, raster, field=0, overlap='last', ...)

Arguments

lns
SpatialLines or a SpatialLinesDataFrame object (sp package), or an object inheriting from SpatialLines
p
SpatialPolygons or a SpatialPolygonsDataFrame object
raster
Raster* object
field
The index (or colname) of the column in the SpatialPolygonsDataFrame to be transfered to the RasterLayer (see Details)
overlap
Character. Determines what values to assign to cells with overlapping polygons. Choose from 'first', 'last', 'sum', 'min', or 'max'
xy
Matrix of x and y coordinates (in the same map reference system as the raster) or a SpatialPoints* object
values
Vector of length of the number of points (i.e., dim(xy)[1] if xy is a matrix) with the values to be used; alternatively you can supply a single value which is then assigned to each point. You can also supply a matrix if its number of rows matches the
fun
Function to be applied
...
Additional arguments

See Also

rasterize