Description Usage Arguments Value
This function is exported mainly for my own benefit, but maybe others will find it useful. It is written to bring the python syntax for binary file reading to R. See the source code of this package for usage examples.
Note a limitation of this approach to binary file reading is that reading and unpacking are inseparable, which can cause headaches in some cases.
1 |
fmt |
a format character according to
the python struct
library docs. The following are currently supported: |
conn |
a connection returned by |
endianness |
string; passed to |
n |
integer; the number of records to read. Also passed to
|
... |
additional arguments to be passed to |
a "scalar" value according to fmt
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.