Learn R Programming

raster (version 3.6-14)

filename: Filename

Description

Get the filename of a Raster* object. You cannot set the filename of an object (except for RasterStack objects); but you can provide a 'filename= ' argument to a function that creates a new RasterLayer or RasterBrick* object.

Usage

filename(x)

Value

a Raster* object

Arguments

x

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