Create a new instance of the BinaryReader class for reading bulk binary data.
Usage
BinaryReader(
input,
byte_offset,
data_type,
bytes_per_element,
endian = .Platform$endian,
signed = TRUE
)
Arguments
- input
Character string (file name) or connection object to read from
- byte_offset
Integer specifying bytes to skip at start of input
- data_type
Character string specifying R data type ('integer', 'double', etc.)
- bytes_per_element
Integer specifying bytes per data element (e.g., 4 or 8)
- endian
Character string specifying endianness ('big' or 'little', default: platform-specific)
- signed
Logical indicating if data type is signed (default: TRUE)
Value
An object of class BinaryReader
See also
BinaryWriter
for writing binary data