Learn R Programming

pack (version 0.1-1)

rawToNum: Raw to Numeric vector

Description

Convert raw values to numeric.

Usage

rawToNum(x, nBytes = 1)

Arguments

x
A raw vector to be converted
nBytes
The number of bytes to use

Value

A numeric value containing the bytes in x.

See Also

numToRaw

Examples

Run this code
  # Will be left null padded
  (x <- numToRaw(421,4))
  rawToNum(x,2)
  rawToNum(x,4)

Run the code above in your browser using DataLab