numToRaw: Numeric to Raw vector

Description Usage Arguments Value Author(s) See Also Examples

Description

Convert numeric values to a raw vector.

Usage

1
  numToRaw(x, nBytes = 1)

Arguments

x

A number to be converted

nBytes

The number of bytes to use

Value

A raw vector containing the bytes representing x.

Author(s)

Josh Ulrich

See Also

rawToNum

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 19, 2017, 6:24 p.m.

Search within the pack package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.