st_read_feather: Read a Feather file to 'sf' object

Description Usage Arguments Details Value See Also Examples

View source: R/st_arrow.R

Description

Read a Feather file. Uses standard metadata information to identify geometry columns and coordinate reference system information.

Usage

1
st_read_feather(dsn, col_select = NULL, ...)

Arguments

dsn

character file path to a data source

col_select

A character vector of column names to keep. Default is NULL which returns all columns

...

additional parameters to pass to FeatherReader

Details

Reference for the metadata used: https://github.com/geopandas/geo-arrow-spec. These are standard with the Python GeoPandas library.

Value

object of class sf

See Also

read_feather, st_read

Examples

1
2
3
4
5
6
7
8
# load Natural Earth low-res dataset.
# Created in Python with GeoPandas.to_feather()
path <- system.file("extdata", package = "sfarrow")

world <- st_read_feather(file.path(path, "world.feather"))

world
plot(sf::st_geometry(world))

sfarrow documentation built on Oct. 27, 2021, 5:07 p.m.