stackBands: Stack up a single band from each of several multiband files.

Description Usage Arguments Value

View source: R/spatial.R

Description

This is a simple convenience function that pulls a named or numbered band from each of several multiband files and stacks them up.

Usage

1
stackBands(paths, band)

Arguments

paths

A character vecor of raster filenames.

band

A single integer or srting denoting which layer to grab.

Value

A raster stack with one layer from each file in paths.


matthewkling/ecoclim documentation built on May 21, 2019, 1:04 p.m.