pamBinRead | R Documentation |
A wrapper for reading various types of binary data.
pamBinRead(
fid,
what = c("int8", "int16", "int32", "int64", "uint8", "uint16", "float", "double",
"character"),
n,
seek = FALSE
)
fid |
The binary file being read |
what |
The type of data to read. Int64 is not handled natively by R, see note. |
n |
The number of objects to read. |
seek |
Whether or not to just seek instead of reading |
Data of the type and number specified.
R does not natively support 64-bit integers. Current implementation is to read an int64 as 8 separate 1-byte raw pieces. These are converted from hexidecimal, shifted by the appropriate power of 2, then summed. Currently cannot read more than one int64 at a time, shouldn't be necessary.
Taiki Sakai taiki.sakai@noaa.gov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.