read_har: Read a GEMPACK HAR file into R

View source: R/read_har.r

read_harR Documentation

Read a GEMPACK HAR file into R

Description

Reads in a GEMPACK HAR file and returns its representation a list. Currently can only process integer headers, real full headers and character headers

Usage

read_har(
  con,
  useCoefficientsAsNames = FALSE,
  toLowerCase = TRUE,
  headersToRead = NULL
)

Arguments

con

Connection or path to HAR file

useCoefficientsAsNames

If a coefficient name is present in the header, use that instead of the four-letter header

toLowerCase

= TRUE Turn all strings to lower case

headersToRead

= NULL A vector of header names to read in

Value

A list of headers

Examples

fl <- system.file("extdata/example1.har", package="HARr")
read_har(fl)

HARr documentation built on Aug. 27, 2025, 5:11 p.m.