HFCparse | R Documentation |
called by readHFC()
and readHFCweb()
. 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.csv(file = filepath, stringsAsFactors = FALSE, na.strings = ".", strip.white = TRUE)
. This function is visible to users, but is not likely needed directly.
HFCparse(DF)
DF |
a data.frame of HFC data, freshly read in. |
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
. Values of 99 or -99 in the AgeInterval
column are replaced with "+"
and "-"
, respectively. Year
taken from Year1
, and YearInterval
is given, rather than Year2
. Users wishing for a central time point should bear this is mind. The column Country
is renamed CNTRY
. Otherwise, columns in this database are kept in the data.frame
, in case they may be useful.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.