Difference between revisions of "Population of Finland"
From Testiwiki
(New page: {{variable}} == Scope == Describes the population number in Finland. '''Dimensions and boundaries''' *Year *Age **1-year interval *Gender **Male **Female == Definition == === Data ==...) |
m |
||
(22 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | {{variable}} | + | [[Category:Population characteristics]] |
+ | [[Category: CLAIH]] | ||
+ | [[Category:Contains R code]] | ||
+ | [[Category:Code under inspection]] | ||
+ | {{variable|moderator = Virpi Kollanus}} | ||
− | == | + | ==Question== |
− | + | What is the population of Finland? | |
− | + | ==Answer== | |
− | + | <t2b index="Age,Observation" locations="Amount" unit="#"> | |
− | + | 0-4|298114 | |
− | + | 5-9|287786 | |
− | + | 10-14|302423 | |
− | + | 15-19|334636 | |
− | + | 20-24|324472 | |
+ | 25-29|344634 | ||
+ | 30-34|337970 | ||
+ | 35-39|310768 | ||
+ | 40-44|358754 | ||
+ | 45-49|378341 | ||
+ | 50-54|378037 | ||
+ | 55-59|388165 | ||
+ | 60-64|396886 | ||
+ | 65-69|258319 | ||
+ | 70-74|225043 | ||
+ | 75-79|179671 | ||
+ | 80-|247408 | ||
+ | All|5351427 | ||
+ | </t2b> | ||
== Definition == | == Definition == | ||
− | = | + | * [http://pxweb2.stat.fi/database/StatFin/vrm/vaerak/vaerak_fi.asp Statistics of Finland] |
+ | * Population of Finland during the H1N1 pandemic and related narcolepsy cluster (~2009-2010?)<ref name="THL report">Kansallisen | ||
+ | narkolepsiatyöryhmän väliraportti 31.1.2011</ref> (See [[H1N1 vaccination coverage in Finland]] also) | ||
− | + | === Unit === | |
+ | |||
+ | <nowiki># persons</nowiki> | ||
+ | |||
+ | === Formula === | ||
+ | |||
+ | '''Total population in Finland | ||
+ | |||
+ | <rcode> | ||
+ | library(OpasnetUtils) | ||
+ | |||
+ | data <- tidy(op_baseGetData("opasnet_base", "Op_en2949"), objname = "population") | ||
+ | population <- new("ovariable", name = "population", data = data) | ||
+ | print(population@data) | ||
+ | |||
+ | objects.put(population) | ||
+ | cat("Object population initiated. Save the page key for further use.\n") | ||
+ | </rcode> | ||
+ | |||
+ | Default run: mzGRDt4VreHPefKI | ||
+ | |||
+ | '''Population parameters per municipality | ||
+ | |||
+ | <rcode graphics="1" variables=" | ||
+ | name:year|description:Which year (1980-2010)?|default:2010| | ||
+ | name:parameter|description:Which parameter to show?|type:selection|default:'Luonnollinen väestönlisäys'|options:'Elävänä syntyneet';Elävänä syntyneet;'Kuolleet';Kuolleet;'Luonnollinen väestönlisäys';Luonnollinen väestönlisäys;'Kuntien välinen tulomuutto';Kuntien välinen tulomuutto;'Kuntien välinen lähtömuutto';Kuntien välinen lähtömuutto;'Kuntien välinen nettomuutto';Kuntien välinen nettomuutto;'Nettosiirtolaisuus';Nettosiirtolaisuus;'Kokonaisnettomuutto';Kokonaisnettomuutto;'Väestönlisäys';Väestönlisäys;'Väkiluvun korjaus';Väkiluvun korjaus;'Kokonaismuutos';Kokonaismuutos;'Väkiluku';Väkiluku | ||
+ | "> | ||
+ | # (C) 2011 Leo Lahti <leo.lahti[at]iki.fi> All rights reserved. | ||
+ | # License: FreeBSD, http://en.wikipedia.org/wiki/BSD_licenses | ||
+ | |||
+ | # Tama esimerkki on testattu sorvi-paketin versiolla 0.1.23 | ||
+ | |||
+ | # Esimerkki Suomen kuntatason vaestonkasvutilastojen (Tilastokeskus) | ||
+ | # visualisoinnista Maanmittauslaitoksen karttadatalla (vuonna 2010) | ||
+ | |||
+ | # Lataa kirjastoja | ||
+ | library(sorvi) | ||
+ | library(OpasnetBaseUtils) | ||
+ | |||
+ | ############################################### | ||
− | + | # Lue Suomen kuntarajat SpatialPolygon-muodossa | |
+ | # (C) Maanmittauslaitos 2011 | ||
+ | # http://www.maanmittauslaitos.fi/aineistot-palvelut/digitaaliset-tuotteet/ilmaiset-aineistot/hankinta | ||
+ | data(MML) | ||
+ | sp <- MML[["1_milj_Shape_etrs_shape"]][["kunta1_p"]] | ||
+ | ################################################# | ||
− | === | + | # Lue kuntatason vaestonkasvutiedot tilastokeskuksen StatFin-tietokannasta |
+ | # http://www.stat.fi/tup/statfin/index.html | ||
+ | # PC Axis-muodossa | ||
+ | px <- statfin.px("vrm/synt/080_synt_tau_203_fi.px") | ||
+ | # statfin.px-funktio käyttää soRvin read.px-funktiota hakemaan dataa URLista, joka alkaa "http://pxweb2.stat.fi/database/StatFin/" | ||
+ | # URLin loppuosa pitää antaa statfin.px:lle parametrina. | ||
+ | # Poimi taulukosta halutut tiedot | ||
+ | # pxs <- subset(as.data.frame(px), Väestönmuutos.ja.väkiluku == "Luonnollinen väestönlisäys" & Vuosi == year) | ||
+ | pxs <- subset(as.data.frame(px), Väestönmuutos.ja.väkiluku == parameter & Vuosi == year) | ||
+ | # Putsaa data | ||
+ | vaestonkasvu <- preprocess.px(pxs) | ||
+ | |||
+ | ################################################ | ||
+ | |||
+ | # Lisaa tiedot karttaobjektiin | ||
+ | sp@data$vaestonkasvu <- vaestonkasvu$dat[match(sp$Kunta.FI, vaestonkasvu$Alue)] | ||
+ | # Korvaa puuttuvat arvot nollalla | ||
+ | sp[["vaestonkasvu"]][is.na(sp[["vaestonkasvu"]])] <- 0 | ||
− | + | ################################################ | |
− | = | + | # Maarittele varipaletti |
+ | my.palette <- colorRampPalette(c("blue", "white", "red"), space = "rgb") | ||
+ | ncol <- 40 # Number of colors | ||
− | + | ################################################# | |
− | |||
− | == | + | # Piirra kuva |
+ | varname <- "vaestonkasvu" | ||
+ | int <- max(abs(sp[[varname]])) | ||
+ | q <- spplot(sp, varname, | ||
+ | col.regions = my.palette(ncol), | ||
+ | main = paste(parameter, year, sep=" "), | ||
+ | colorkey = TRUE, | ||
+ | lwd = .4, | ||
+ | col = "black", | ||
+ | at = seq(0 - int, 0 + int, length = ncol) | ||
+ | ) | ||
− | + | print(q) | |
+ | </rcode> | ||
==See also== | ==See also== | ||
− | + | * [http://en.opasnet.org/w/File:Population_of_Finalnd_2008.xls Population 2008 with one year intervals male/female, excel sheet] | |
+ | * www.stat.fi -> [http://pxweb2.stat.fi/Dialog/varval.asp?ma=050_vaerak_tau_104_fi&ti=V%E4est%F6+i%E4n+%281%2Dv%2E%29+ja+sukupuolen+mukaan+alueittain+1980+%2D+2008&path=../Database/StatFin/vrm/vaerak/&lang=3&multilang=fi PX Web database] | ||
==References== | ==References== | ||
− | + | <references/> | |
− | |||
− | < | + | ==Related files== |
+ | |||
+ | {{mfiles}}<!-- __OBI_TS:1369642917 --> |
Latest revision as of 11:05, 26 August 2013
This page is a variable.
The page identifier is Op_en2949 |
---|
Moderator:Virpi Kollanus (see all) |
Give your opinion to the peer rating of the content of this page. |
Upload data
|
Contents
Question
What is the population of Finland?
Answer
Obs | Age | Amount |
---|---|---|
1 | 0-4 | 298114 |
2 | 5-9 | 287786 |
3 | 10-14 | 302423 |
4 | 15-19 | 334636 |
5 | 20-24 | 324472 |
6 | 25-29 | 344634 |
7 | 30-34 | 337970 |
8 | 35-39 | 310768 |
9 | 40-44 | 358754 |
10 | 45-49 | 378341 |
11 | 50-54 | 378037 |
12 | 55-59 | 388165 |
13 | 60-64 | 396886 |
14 | 65-69 | 258319 |
15 | 70-74 | 225043 |
16 | 75-79 | 179671 |
17 | 80- | 247408 |
18 | All | 5351427 |
Definition
- Statistics of Finland
- Population of Finland during the H1N1 pandemic and related narcolepsy cluster (~2009-2010?)[1] (See H1N1 vaccination coverage in Finland also)
Unit
# persons
Formula
Total population in Finland
Default run: mzGRDt4VreHPefKI
Population parameters per municipality
See also
References
- ↑ Kansallisen narkolepsiatyöryhmän väliraportti 31.1.2011
Related files
<mfanonymousfilelist></mfanonymousfilelist>