read_fude {fude} | R Documentation |
Read a Fude Polygon ZIP file
Description
read_fude()
reads Fude Polygon data as a list. The data can be downloaded
from the MAFF website as a ZIP file, which contains one or more spatial data
files, such as GeoJSON files (.json
or .geojson
) and FlatGeobuf
files (.fgb
). The function also works with ZIP files you created, as long
as you do not change the filenames of the original files.
Usage
read_fude(
path = NULL,
pref = NULL,
year = 2024,
census_year = 2020,
stringsAsFactors = TRUE,
to_wgs84 = TRUE,
quiet = FALSE,
supplementary = FALSE
)
Arguments
path |
Path to the ZIP file containing one or more supported spatial data files.
Supported formats include |
pref |
The year when the Fude Polygon data was created. |
year |
The year when the Fude Polygon data was created. |
census_year |
The year of the Agricultural and Forestry Census. |
stringsAsFactors |
logical. Should character vectors be converted to factors? |
to_wgs84 |
logical. Convert JGD2000 to WGS 84. |
quiet |
logical. Suppress information about the data to be read. |
supplementary |
logical. If TRUE, add supplementary information for each polygon. |
Value
A list of sf::sf()
objects.
Examples
path <- system.file("extdata", "castle.zip", package = "fude")
d <- read_fude(path, stringsAsFactors = FALSE)