Population of Finland: Difference between revisions

From Opasnet
Jump to navigation Jump to search
mNo edit summary
(→‎Definition: Added code that gets the populationdata for 2018 from Statistics Finland)
Line 58: Line 58:


Default run: mzGRDt4VreHPefKI
Default run: mzGRDt4VreHPefKI
'''Total population of Finland, taken from Statistics Finland.
<rcode name="population">
# This is code Op_en2949/population on page [[Population of Finland]]
library(OpasnetUtils)
# Read population data 2018 from Statistics Finland
vae <- read.csv("https://pxnet2.stat.fi:443/PXWeb/sq/ac3373d0-e303-4c67-b32a-73c6d26df809", skip=2, fileEncoding="ISO-8859-1")
vae$Ikä <- as.numeric(gsub(" -","",as.character(vae$Ikä)))
 
population <-data.frame(Age=c("0-4", "5-9", "10-14", "15-24", "25-64", "65-74", "70+", "Total population", "Females", "Males"),
          N.of.people=c(
    sum(vae$X2018[vae$Ikä>=0 & vae$Ikä <5]), # Age 0-4
    sum(vae$X2018[vae$Ikä>=5 & vae$Ikä <10, # Age 5-9
    sum(vae$X2018[vae$Ikä>=10 & vae$Ikä <15]), # Age 5-14
    sum(vae$X2018[vae$Ikä>=15 & vae$Ikä <25]), # Age 15-24
    sum(vae$X2018[vae$Ikä>=25 & vae$Ikä <65]), # Age 25-64
    sum(vae$X2018[vae$Ikä>=65 & vae$Ikä <75]), # Age 65-74
    sum(vae$X2018[vae$Ikä>=70 & vae$Ikä <101]), # Age 70+
    sum(vae$X2018), # Total population
    sum(vae$X2018[vae$Sukupuoli=="Naiset"]), #Females
    sum(vae$X2018[!(vae$Sukupuoli=="Naiset")]) #Non female
    )
)
cat(population)
population <- Ovariable(
  "population",
  data=population
)
objects.store(population)
cat("Ovariable population stored.\n")
</rcode>


'''Population parameters per municipality
'''Population parameters per municipality

Revision as of 10:42, 4 July 2019



Question

What is the population of Finland?

Answer

Population of Finland: Difference between revisions(#)
ObsAgeAmount
10-4298114
25-9287786
310-14302423
415-19334636
520-24324472
625-29344634
730-34337970
835-39310768
940-44358754
1045-49378341
1150-54378037
1255-59388165
1360-64396886
1465-69258319
1570-74225043
1675-79179671
1780-247408
18All5351427

Definition

Unit

# persons

Formula

Total population in Finland

+ Show code

Default run: mzGRDt4VreHPefKI

Total population of Finland, taken from Statistics Finland.

+ Show code

Population parameters per municipality

Which year (1980-2010)?:

Which parameter to show?:

+ Show code

See also

References

  1. Kansallisen narkolepsiatyöryhmän väliraportti 31.1.2011

Related files

<mfanonymousfilelist></mfanonymousfilelist>