Skip to contents

combine_fude() uses the agricultural community boundary data to reduce the Fude Polygon data to the community units.

Usage

combine_fude(
  data,
  boundary,
  city,
  old_village = "",
  community = "",
  year = NULL
)

Arguments

data

List of sf::sf() objects.

boundary

List of one or more agricultural community boundary data provided by the MAFF.

city

A local government name in Japanese to be extracted. In the case of overlapping local government names, this must contain the prefecture name in Japanese and the prefecture code in romaji (e.g., "Fuchu-shi, 13", "fuchu 13", "34 fuchu-shi", "34, FUCHU-CHO"). Alternatively, it could be a 6-digit local government code.

old_village

String by regular expression. One or more old village name in Japanese to be extracted.

community

String by regular expression. One or more agricultural community name in Japanese to be extracted.

year

Year in the column name of the data. If there is more than one applicable local government code, it is required.

Value

A list of sf::sf() objects.

See also

Examples

if (FALSE) { # interactive()
path <- system.file("extdata", "castle.zip", package = "fude")
d <- read_fude(path, stringsAsFactors = FALSE)
b <- get_boundary(d)
db <- combine_fude(d, b, "\u677e\u5c71\u5e02", "\u57ce\u6771", year = 2022)
}