Description Usage Arguments Value Author(s) Examples
Trim (shrink) a Raster* object by removing outer rows and columns that all have the same value (e.g. NA).
Or remove the whitespace before or after a string of characters (or a matrix, or the character values in a data.frame).
1 2 3 4 |
x |
Raster* object or a character string |
values |
numeric. Value(s) based on which a Raster* should be trimmed |
padding |
integer. Number of outer rows/columns to keep |
filename |
character. Optional output filename |
internal |
logical. If |
... |
If |
A RasterLayer or RasterBrick object (if x
is a Raster* object) or a character string (if x
is a character string).
Robert J. Hijmans and Jacob van Etten
1 2 3 4 5 6 7 8 |
Loading required package: sp
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
[1] "hi folks !"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.