raster (version 1.0.4)

filename: Filename

Description

Get the filename of a Raster* object. You can also set the filename, but normally you should set a filename by providing a 'filename= ' argument to a function that creates a new RasterLayer or RasterBrick* object.

Usage

filename(x)
filename(x) <- value

Arguments

x
A Raster* object
value
A filename (only for RasterStack objects

Value

  • a Raster* object

Examples

Run this code
r <- raster( system.file("external/test.grd", package="raster") )
filename(r)

Run the code above in your browser using DataLab