readBin {file} |
R Documentation |
ransfer Binary Data To and From Connections
Description
Read binary data from or write binary data to a connection
or raw vector.
Usage
readBin(con, what,
n = 1,
size = -2147483648,
signed = TRUE,
endian = big,
... = NULL);
Arguments
con
A connection Object Or a character
String naming a file Or a raw vector.
n
numeric. The (maximal) number of records to be read.
You can use an over-estimate here, but not too large
as storage is reserved for n items. [as integer]
size
Integer.The number Of bytes per element In the Byte
stream. The Default, NAinteger, uses the natural
size. Size changing Is Not supported For raw And
complex vectors. [as integer]
signed
logical. Only used for integers of sizes 1 and 2, when
it determines if the quantity on file should be regarded
as a signed or unsigned integer. [as boolean]
endian
The endian-ness ("big" Or "little")
Of the target system For the file. Using "swap" will force
swapping endian-ness. [as endianness]
what
Either an object whose mode will give the mode of the
vector to be read, or a character vector of length one
describing the mode: one of "numeric", "double",
"integer", "int", "logical", "complex", "character",
"raw".
Details
Authors
SMRUCC genomics Institute
Value
this function returns data object of type
any kind.
clr value class
Examples
[Package
file version 2.33.856.6961
Index]