read.demogdata or demogdata for pop for non-hmd files

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" ??

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.