extract_fude()
extracts the specified data from the list returned by
read_fude()
.
Arguments
- data
List of
sf::sf()
objects.- year
Years to be extracted.
- city
Local government names or codes to be extracted.
- list
logical. If
FALSE
, the object to be extracted is no longer a list.
Value
A list of sf::sf()
object(s).
Examples
path <- system.file("extdata", "castle.zip", package = "fude")
d <- read_fude(path, stringsAsFactors = FALSE, quiet = TRUE)
d2 <- extract_fude(d, year = 2022)