Read FHX2 file and return an `fhx`` object

read_fhx(fname, encoding, text)

Arguments

fname

Name of target FHX file. Needs to be in format version 2.

encoding

Encoding to use when reading the FHX file. The default is to use the system default in R.

text

Character string. If fname is not provided and text is, then data is read from text using a text connection.

Value

An fhx object, as returned by fhx().

See also

  • write_fhx() write an fhx object to a file.

  • fhx() create an fhx object.

  • as_fhx() cast data frame or similar object to an fhx object.

Examples

if (FALSE) {
d <- read_fhx("afile.fhx")
}