rlayers_ntb: Function to read raster layers with the same extent and...

View source: R/rlayers_ntb.R

rlayers_ntbR Documentation

Function to read raster layers with the same extent and resolution in all raster acepted formats

Description

Read raster layers that that have the same extent and resolution, all raster-package formats are accepted (see writeFormats)

Usage

rlayers_ntb(layers_path)

Arguments

layers_path

Path to the folder conteining raster layers. All layers in the folder have to have the same extent and resoltion

Value

Returns a raster stack of raster layers with the same extent and resolution

Examples

## Not run: 
## RasterStack with the niche variables
dir_bios <- system.file("extdata/bios",package = "ntbox")
nicheStack <- ntbox::rlayers_ntb(dir_bios)
raster::plot(nicheStack[[1]])

## End(Not run)

luismurao/ntbox documentation built on May 9, 2024, 8:24 p.m.