How to create demogdata object from external file if data is just population and not from hmd site (but has same structure of course).
In documentation (link: https://cran.r-project.org/web/packages/demography/demography.pdf) it is said that:
demogdata(data, pop, ages, years, type, label, name, lambda)
type Character string showing type of demographic series: either “mortality”, “fertility” or “migration”.
read.demogdata(file, popfile, type, label, max.mx = 10, skip = 2,
popskip = skip, lambda, scale = 1)
type Character string showing type of demographic series: either “mortality”, “fertility” or “migration”.
Okay, it is great, but how to create demogdata from type = "population" ??