Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/get.stat.data.R
This function purposes to get a data of a survey the defined with stat id.
1 | get.stat.data(app.id, param, stat.id)
|
app.id |
Your application ID. Using all functions contained govStatJPN package, this ID is required. |
param |
You can set the list of survey years and language as a list object like |
stat.id |
Required. This is an id in retuned values of |
This function is based on section 3.4 at the published pdf file (http://statdb.nstac.go.jp/wp/wp-content/uploads/2013/06/API-spec.pdf).
value |
This is the data of the specified survey. |
note |
This is the note of the specified survey. |
This product uses the Gateway to Advanced and User-friendly Statistics Service API but is not endorsed or certified by the Statistics Bureau or the National Statistics Center.
Yuichio Otani <yuichiro@otani.co>
http://statdb.nstac.go.jp/
http://statdb.nstac.go.jp/wp/wp-content/uploads/2013/06/API-spec.pdf
1 2 3 4 5 6 7 8 9 10 11 12 13 | # stat.list <- get.stat.list(app.id, list(surveyYears=2007, lang='J'))
# stat.data <- get.stat.data(app.id, list(limit=100),stat.list$id[1])
# show data of the survey
# stat.data$value
# summation of data
# sum(stat.data$value$value)
# mean of data
# mean(stat.data$value$value)
# standard deviation of data
# sd(stat.data$value$value)
# get histogram
# hist(stat.data$value$value, breaks=25)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.