read_muni_id: Read municipalities id's and names

View source: R/read_muni_id.R

read_muni_idR Documentation

Read municipalities id's and names

Description

Israeli municipalities have different id's and sometimes even different names across different government organizations. This function allows you to read different municipality id's and names , so interchanging between the different specifications would be easier.

Usage

read_muni_id(id_types = c("muni", "edu", "tax"), include_names = FALSE)

Arguments

id_types

A character vector of length between 1 and 3, containing at least one (or two, or all of) of the possible values. id's (and possibly names) of municipalities are kept for the selected sources:

  • "muni" is for CBS id's and (cleaned) names.

  • "edu" is for Ministry of Education municipal symbol ("Semel Reshut" in Hebrew)

  • "tax" is for Israel Tax Authority municipal id (also known as a "H.P. number")

include_names

A logical vector of length 1, denoting if the names of municipalities (for each of the id_types chosen) should be included. Be aware that some municipal names might differ between different agencies.

Value

A tibble, where every row is a municipality and the columns include id's (and possibly names) of the municipalities from the chosen agencies.

Examples

read_muni_id() |>
  dplyr::glimpse()

read_muni_id(id_types = c("muni", "edu"), include_names = TRUE) |>
  dplyr::glimpse()

il.cbs.muni documentation built on Feb. 13, 2026, 1:06 a.m.