readHFD() reads a standard HFD .txt table as a data.frameThis calls read.table() with all the necessary defaults to avoid annoying surprises. The Age column is also stripped of "-" and "+" and converted to integer, and a logical indicator column called OpenInterval is added to show where these were located. Output is invisibly returned, so you must assign it to take a look. This is to avoid lengthy console printouts.
readHFD(filepath, fixup = TRUE, item = NULL, ...)data.frame of standard HFD output, except the Age column has been cleaned, and a new open age indicator column has been added.
path or connection to the HFD text file, including .txt suffix.
logical. Should columns be made more user-friendly, e.g., forcing Age to be integer?
character string of the data product code, which is the base file name, but excluding the country code and file extension .txt. For instance, "mabRR" or "tfrVHbo". This will be passed in, potentially, by the reader.
other arguments passed to read.table, not likely needed.
No details of note.