Description Usage Arguments Details Value Author(s) See Also Examples
Extract filenames from all Raster* objects.
1 | raster_to_filenames(x, unique = FALSE)
|
x |
Raster*. A Raster* object (even one without values/in memory) to determine the filename(s). |
unique |
Logical. Only return unique filenames? If FALSE, one filename per layer. |
This is an expansion of filename() that allows for RasterStacks, in-memory Raster*s, and Raster*s without values. If a filename is not found, the entry will be "".
Character vector of filenames.
Jonathan A. Greenberg
1 2 3 4 5 6 7 | {
tahoe_highrez <- brick(system.file("external/tahoe_highrez.tif", package="spatial.tools"))
raster_to_filenames(tahoe_highrez)
raster_to_filenames(tahoe_highrez,unique=TRUE)
nodata <- raster()
raster_to_filenames(nodata)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.