Learn R Programming

ctypesio (version 0.1.2)

read_raw: Read raw bytes

Description

Read raw bytes

Usage

read_raw(con, n = 1)

Value

raw vector

Arguments

con

Connection object or raw vector. Connection objects can be created with file(), url(), rawConnection() or any of the other many connection creation functions.

n

Number of elements to read. Default: 1

See Also

Other data input functions: read_f64(), read_hex(), read_str(), read_uint8(), scan_dbl()

Examples

Run this code
con <- rawConnection(charToRaw("hello12.3"))
read_raw(con, 5)
close(con)

Run the code above in your browser using DataLab