rawToNum: Raw to Numeric vector

Description Usage Arguments Value Author(s) See Also Examples

Description

Convert raw values to numeric.

Usage

1
  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.

Author(s)

Josh Ulrich

See Also

numToRaw

Examples

1
2
3
4
  # Will be left null padded
  (x <- numToRaw(421,4))
  rawToNum(x,2)
  rawToNum(x,4)

pack documentation built on May 29, 2017, 7:57 p.m.