extract_fude {fude}R Documentation

Extract specified Fude Polygon data

Description

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

read_fude().

Examples

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


[Package fude version 0.3.6 Index]