Learn R Programming

rangeMapper (version 0.0-6)

selectShpFiles: Select (recursively) shape files

Description

Returns the file path to all .shp files in a directory.

Usage

selectShpFiles(dir, ...)

Arguments

dir
character string specifying the directory containing .shp files.
...
Other arguments to pass to methods of class rangeFiles-class

Value

  • Either a data.frame or a character vector is returned.

References

Valcu, M., Dale, J. and Kempenaers, B. (in prep) rangeMapper: A platform for the study of macroecology of life history traits.

See Also

rangeMapper for a complete example. rangeFiles-class

Examples

Run this code
f= system.file(package="rangeMapper", "extdata", "wrens", "vector")
res = selectShpFiles(f, ogr = TRUE, polygons.only = TRUE)
head(res)

Run the code above in your browser using DataLab