load_harplus | R Documentation |
Reads a GEMPACK HAR file and efficiently extracts structured data while maintaining compatibility with standard HAR formats. This implementation builds upon the foundational work of the HARr package, reorganizing the process for improved execution speed, memory management, and handling of sparse data structures.
load_harplus(con, coefAsname = FALSE, lowercase = TRUE, select_header = NULL)
con |
Character or connection. The file path to the HAR file or an open binary connection. |
coefAsname |
Logical. If |
lowercase |
Logical. If |
select_header |
Character vector. Specific headers to extract; if |
Efficient File Reading: Reads large HAR files in chunks for better performance.
Optimized Memory Usage: Reduces unnecessary allocations and improves cleanup.
Streamlined Header Processing: Ensures accurate extraction of dimension metadata.
Supports Sparse Data Structures: Handles RESPSE
and REFULL
headers efficiently.
Supported HAR Header Types:
1CFULL
: Character headers
2IFULL
: Integer headers
2RFULL
: Real headers
REFULL
: Real headers with extended metadata
RESPSE
: Sparse real headers
A structured list where:
Each element corresponds to a header in the HAR file.
Names are either header names or coefficient names (if coefAsname = TRUE
).
Data maintains its original dimensions and attributes.
Pattawee Puangchit
load_sl4x
, load_harx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.