Learn R Programming

HMDHFDplus (version 2.0.6)

getJMDprefectures: get a named vector of JMD prefecture codes

Description

This is a helper function for those familiar with prefecture names but not with prefecture codes (and vice versa). It is also useful for looped downloading of data.

Usage

getJMDprefectures()

Arguments

Value

a character vector of 2-digit prefecture codes. Names correspond to the proper names given in the English version of the HMD webpage.

Examples

Run this code
if (FALSE)  (prefectures <- getJMDprefectures()) 

Run the code above in your browser using DataLab