Description Usage Arguments Details Value Author(s) References See Also Examples
This function gives a list of maps in the current GRASS session, matching with a user-specified pattern.
1 | list.maps(prefix = "*")
|
prefix |
character string. It states a pattern to search for. |
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.
Return a list of all both vectorial and raster maps available in the current GRASS session, matching a regular expression.
Chiara Magliozzi chiara.magliozzi@libero.it, Fernando Canovas fcgarcia@ualg.pt
https://grass.osgeo.org/grass70/manuals/g.list.html
map.info
, import.egvs
, initGRASS
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.