extract_fude {fude} | R Documentation |
extract_fude()
extracts the specified data from the list returned by
read_fude()
.
extract_fude(data, year = NULL, city = NULL, list = TRUE)
data |
List of |
year |
Years to be extracted. |
city |
Local government names or codes to be extracted. |
list |
logical. If |
A list of sf::sf()
object(s).
path <- system.file("extdata", "castle.zip", package = "fude")
d <- read_fude(path, stringsAsFactors = FALSE, quiet = TRUE)
d2 <- extract_fude(d, year = 2022)