| read_fude | R Documentation |
read_fude() reads MAFF Fude Polygon data from a ZIP file and returns the
layers as a named list of sf::sf() objects. If path is not supplied, the
function downloads the ZIP file for the specified prefecture and year using
pref, year, and rcom_year.
The ZIP archive may contain one or more supported spatial files in GeoJSON
(.json or .geojson) or FlatGeobuf (.fgb) format. The function also
works with ZIP files created manually, provided that the original file names
are preserved.
read_fude(
path = NULL,
pref = NULL,
year = 2025,
rcom_year = 2020,
crs = NULL,
supplementary = FALSE,
quiet = FALSE
)
path |
Path to a ZIP file containing one or more supported spatial files. If |
pref |
Prefecture name or prefecture code used when downloading data. Ignored if
|
year |
The Fude Polygon data year used in the download file name. |
rcom_year |
The agricultural community boundary year used in the download file name. |
crs |
Coordinate reference system to transform the output layers to. If |
supplementary |
Logical. If |
quiet |
Logical. If |
A named list of sf::sf() objects.
path <- system.file("extdata", "castle.zip", package = "fude")
d <- read_fude(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.