HFDparse: internal function for modifying freshly read HFD data in its...

View source: R/HFDutils.R

HFDparseR Documentation

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

Description

called by readHFD() and readHFDweb(). 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

HFDparse(DF)

Arguments

DF

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

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.