Learn R Programming

SMMT (version 1.2.0)

municipality_counter: Municipality counter

Description

Count the municipalities for a set of dates. Either at the national or cantonal level. See vignette for details.

Usage

municipality_counter(
  mutations,
  dates,
  geo_level = "ch",
  include_cant_lakes = FALSE
)

Value

A tibble with the municipality count per date and specified geography.

Arguments

mutations

A tibble containing the municipality mutations inventory (see import_CH_municipality_inventory)

dates

A Date object vector

geo_level

Either "ch" or "cantons".

include_cant_lakes

Boolean, TRUE to also include lakes in the count.