The 'raster' package deals with basic spatial raster (grid) data access and manipulation. It defines raster classes; can deal with very large files (stored on disk); and includes standard raster functions such as overlay, aggregation, and merge.
The purpose of the 'raster' package is to provide easy to use functions for raster type spatial data manipulation and analysis. The functions in this package include high level functions such as overlay, merge, aggregate, projection, resample, distance, and polygon to raster conversion. All these functions work for very large raster datasets that cannot be loaded into RAM memory. In addition, the package provides lower level functions such as row by row reading and writing (to many formats via rgdal) for building other functions.
The package is build around a number of S4 classes of which the RasterLayer, RasterStack, and RasterBrick classes are the most important. Many generic methods are implemented for RasterLayers (arithmic, logical, plot, hist, ...). All code is written in R.
The raster package is used by other packages, including 'dismo' gdistance for matrix based (cost, resistance) distance calculations.
One of the main reasons for developing this package is that we would like to build a bridge to - the powerful statistics and modeling of - R for the "GIS" community.We welcome your feedback and suggestions. For more information on spatial data analysis with R seen the CRAN task view on that subject.
Go to the development pages to download the package, to report bugs, ask for features, and more.