Skip to contents

extract_fude() extracts the specified data from the list returned by read_fude().

Usage

extract_fude(data, year = NULL, city = NULL, list = TRUE)

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).

See also

Examples

path <- system.file("extdata", "castle.zip", package = "fude")
d <- read_fude(path, stringsAsFactors = FALSE, quiet = TRUE)
d2 <- extract_fude(d, year = 2022)