readogr: Read a shapefile using vect

View source: R/readogr.r

readogrR Documentation

Read a shapefile using vect

Description

Read a shapefile using the RGDAL library. Essentially this is just a wrapper around vect from the terra package.

Usage

readogr(x, ...)

Arguments

x

character string. Path to the shapefile to be read in.

...

further arguments passed on to vect

Details

DEPRECATED!!! This wrapper splits a path to a shapfile into the dirname and the basename. The latter is passed as dsn argument the first as layer argument to readOGR.

This now is just a wrapper of vect from the terra package and kept for compability issues.

Author(s)

Simon Frey

See Also

writeogr

terra:writeVector

Examples

    #### not run ####
    x <- "C:/TEMP/someshapefile.shp"
    readogr(x)
    
    #### end not run ####


freysimon/TigR documentation built on April 20, 2024, 9:28 p.m.