Last data update: 2014.03.03

R: Search and get a list of statistical data from...
getStatsListR Documentation

Search and get a list of statistical data from http://statdb.nstac.go.jp/

Description

Searcn and get a list of statistical data from “Gateway to Advanced and User-friendly Statistics Service” (http://statdb.nstac.go.jp/) organized by Japanese government.

Usage

getStatsList(searchWord = "", surveyYears = "", openYears = "",
             statsField = NULL, statsCode = NULL, searchKind = 1,
             statsNameList = "")

Arguments

searchWord

search words (you can use AND OR operations)

surveyYears

years to survey data (format: yyyy, yyyymm or yyyymm-yyyymm)

openYears

years to open data (same format as surveyYears)

statsField

field of statistics (2-digits number: search from major division; 4-digits: search from minor division)

statsCode

code of statistics (5-digits number: search by the author government; 8-digits number: search by government statistics code)

searchKind

1: statistics information (default) 2: regional mesh 3: statistics system of society and population

statsNameList

Y: get statistical survey name (not statistics information)

Value

Dataframe of search results

Author(s)

Kiwamu Ishikura <ishikura.kiwamu@gmail.com>

References

http://statdb.nstac.go.jp/system-info/api/api-spec/

Examples

getStatsList("Hokkaido AND population", surveyYears = 2008)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Rjpstatdb)
Loading required package: RCurl
Loading required package: bitops
Loading required package: XML
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Rjpstatdb/getStatsList.Rd_%03d_medium.png", width=480, height=480)
> ### Name: getStatsList
> ### Title: Search and get a list of statistical data from
> ###   http://statdb.nstac.go.jp/
> ### Aliases: getStatsList
> ### Keywords: ~getStatsList
> 
> ### ** Examples
> 
> ## No test: 
> getStatsList("Hokkaido AND population", surveyYears = 2008)
Error: Not Found 
Execution halted