Find layers within GRASS GIS with multiple patterns
Source:R/grass_find_layers.R
grass_find_layer.Rd
Find layers within GRASS GIS with multiple patterns
Usage
grass_find_layer(
list_patterns,
layers_grass = NULL,
type = "raster",
pattern = "*",
mapset = "PERMANENT"
)
Arguments
- list_patterns
[list,character]
List of strings, each corresponding to a pattern to be searched in the names of layers within a GRASS GIS mapset. The patterns are filtered one after the other, in the order they are listed.- layers_grass
[vector,character]
Vector of strings with the names of maps being assessed, within a GRASS GIS mapset, such as the ones created through theg.list
module. IfNULL
(default), the list of maps within the GRASS GIS mapset is assessed within the function.- type
[character(1)="raster"]
Type of layer to be listed within the GRASS GIS mapset (e.g. "raster", "vector"), iflayers_grass
isNULL
.- pattern
[character]
Regular expression used to list maps within the GRASS GIS mapset, iflayers_grass
isNULL
. Default is "*", so all maps of a giventype
are listed.- mapset
[character(1)="PERMANENT"]
Name of the mapset from which maps are listed, iflayers_grass
isNULL
. Default is "PERMANENT".