maffcensusは農林水産省が取り扱う各種のオープンデータ等をRで処理しやすくするためのパッケージです。
パッケージを利用するにはGitHubからインストールを行う必要があります。次のコマンドをRで実行することでインストールが行われます。
if (!requireNamespace("remotes"))
install.packages("remotes")
remotes::install_github("uribo/maffcensus")
library(maffcensus)
read_census_keieitai()
read_rcom()
read_machimura()
農業集落境界データ 2015, 2010年のShapefile形式のデータをsfオブジェクトとして読み込みます。
read_rcom("MA0001_2015_2015_44/rcom.shp")
わがマチ・わがムラ のページからダウンロードした市町村別の統計データに対して
の処理をおこなう関数を提供します。
d <-
read_machimura("details_data.csv")
d
d %>%
machimura_filter_area(city_only = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.