Filenames {reproducible} | R Documentation |
Return the filename(s) from a Raster*
object
Description
This is mostly just a wrapper around filename
from the raster
package, except that
instead of returning an empty string for a RasterStack
object, it will return a vector of
length >1 for RasterStack
.
Usage
Filenames(obj, allowMultiple = TRUE, returnList = FALSE)
## S4 method for signature 'ANY'
Filenames(obj, allowMultiple = TRUE, returnList = FALSE)
## S4 method for signature 'environment'
Filenames(obj, allowMultiple = TRUE, returnList = FALSE)
## S4 method for signature 'list'
Filenames(obj, allowMultiple = TRUE, returnList = FALSE)
## S4 method for signature 'data.table'
Filenames(obj, allowMultiple = TRUE, returnList = FALSE)
## S4 method for signature 'Path'
Filenames(obj, allowMultiple = TRUE, returnList = FALSE)
Arguments
obj |
A |
allowMultiple |
Logical. If |
returnList |
Default |
Details
New methods can be made for this generic.
Value
A character vector of filenames that are part of the objects passed to obj
.
This returns NULL
is the object is not file-backed or does not have a method
to recover the file-backed filename.
Author(s)
Eliot McIntire