03_rangeFiles: Select (recursively) shape files

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

Description

Returns the file path to all ‘.shp’ polygons in a directory.

Usage

1

Arguments

dir

character string specifying the directory containing .shp files.

...

currently ignored

Value

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

Note

The function uses getinfo.shape to only select polygon files (aka type 5).

Author(s)

Mihai Valcu valcu@orn.mpg.de

References

Valcu, M., Dale, J. and Kempenaers, B. (2012) rangeMapper: A platform for the study of macroecology of life history traits. 21(9). (DOI: 10.1111/j.1466-8238.2011.00739.x)

See Also

rangeMap.save. getinfo.shape

Examples

1
2
3
f= system.file(package="rangeMapper", "extdata", "wrens", "vector")
res = selectShpFiles(f, ogr = TRUE, polygons.only = TRUE)
head(res)

rangeMapper documentation built on May 2, 2019, 5 p.m.