HMDparse: internal function for modifying freshly read HMD data in its...

View source: R/HMDutils.R

HMDparseR Documentation

internal function for modifying freshly read HMD data in its standard form

Description

called by readHMD() and readHMDweb(). We assume there are no factors in the given data.frame and that it has been read in from the raw text files using something like: read.table(file = filepath, header = TRUE, skip = 2, na.strings = ".", as.is = TRUE). This function is visible to users, but is not likely needed directly.

Usage

HMDparse(DF, filepath)

Arguments

DF

a data.frame of HMD data, freshly read in.

filepath

just to check if these are population counts from the name.

Details

This parse routine is based on the subjective opinions of the author...

Value

DF same data.frame, modified so that columns are of a useful class. If there were open age categories, such as "-" or "+", this information is stored in a new dummy column called OpenInterval.


HMDHFDplus documentation built on July 9, 2023, 6:26 p.m.