HMDparse | R Documentation |
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.
HMDparse(DF, filepath)
DF |
a data.frame of HMD data, freshly read in. |
filepath |
just to check if these are population counts from the name. |
This parse routine is based on the subjective opinions of the author...
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.