Population of Finland: Difference between revisions

From Opasnet
Jump to navigation Jump to search
mNo edit summary
(→‎Formula: Deleted old code that has already been replaces by new)
Line 34: Line 34:


'''Total population in Finland
'''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
'''Total population of Finland, taken from Statistics Finland.


<rcode name="population">
<rcode name="population">
Line 55: Line 40:
library(OpasnetUtils)
library(OpasnetUtils)


# Read population data 2018 from Statistics Finland
# Read population data 2018 from Statistics Finland
# Run this code on your computer to get the data in the answer.
# Run this code on your computer to get the data in the answer.
#vae <- re#ad.csv("https://pxnet2.stat.fi:443/PXWeb/sq/ac3373d0-e303-4c67-b32a-73c6d26df809", skip=2, fileEncoding="ISO-8859-1")
#vae <- re#ad.csv("https://pxnet2.stat.fi:443/PXWeb/sq/ac3373d0-e303-4c67-b32a-73c6d26df809", skip=2, fileEncoding="ISO-8859-1")
Line 74: Line 59:
#                                        )
#                                        )
#                          )
#                          )
# Save the data presented in the table on this page as an ovariable


population <- Ovariable(
population <- Ovariable(

Revision as of 11:27, 12 July 2019



Question

What is the population size and age structure of the population of Finland? What is the life expectancy in the population?

Answer

Population(#)
ObsAgeResult
10-4267686
25-9309010
310-14305538
415-24616543
525-642814305
665-79902127
780+302710
8All5517919

Rationale

Data

In 2017, the life expectancy for children born was 78.7 years for males and 84.2 years for females.

Formula

Total population in Finland

+ Show code

Population parameters per municipality

Which year (1980-2010)?:

Which parameter to show?:

+ Show code

See also

References