list.maps: List available raster and/or vector maps

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

This function gives a list of maps in the current GRASS session, matching with a user-specified pattern.

Usage

1
list.maps(prefix = "*")

Arguments

prefix

character string. It states a pattern to search for.

Details

Argument prefix allows to list all maps matching a regular expression or pattern, i.e., "std_*" will search for all maps starting with "std_". See also https://en.wikipedia.org/wiki/Regular_expression regular expressions (aka regex) - from Wikipedia, the free encyclopedia.

Value

Return a list of all both vectorial and raster maps available in the current GRASS session, matching a regular expression.

Author(s)

Chiara Magliozzi chiara.magliozzi@libero.it, Fernando Canovas fcgarcia@ualg.pt

References

https://grass.osgeo.org/grass70/manuals/g.list.html

See Also

map.info, import.egvs, initGRASS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# starting GRASS session
initGRASS("/usr/bin/grass-7.0.0", home=tempdir())
initGRASS("C:/GRASS", home=tempdir())

## Path of the files to be read
predictor.names <- c("tann", "mntcm", "mxtwm", "rfann", "rfdm", "rfwm")
file.names <- paste(system.file(package = "ENiRG"),
                    "/ext/", predictor.names, ".asc", sep="")

import.egvs(file.names, predictor.names)

list.maps("rf*")
list.maps("*ann")

## End(Not run)

ENiRG documentation built on May 1, 2019, 9:15 p.m.