Learn R Programming

rdwplus (version 0.1.0)

set_envir: Set environment parameters from a GIS layer.

Description

This function simplifies the process of setting up a GRASS environment with parameters such as cell snapping, size and mapset extent.

Usage

set_envir(layer)

Value

Nothing. Displays current environment settings.

Arguments

layer

A Raster* object or the file path to a GIS layer that should be used to set environment parameters such as cell size, extent, etc.

Examples

Run this code
# Will only run if GRASS is running
if(check_running()){

# Load data set
dem <- system.file("extdata", "dem.tif", package = "rdwplus")

# Set environment 
set_envir(dem)

# Get environment metadata
gmeta()

}

Run the code above in your browser using DataLab