Learn R Programming

mcga (version 3.0.7)

ByteVectorToDoubles: Converting p * sizeof(double) bytes to a vector of p double values

Description

This function converts a byte vector to a vector of doubles

Usage

ByteVectorToDoubles(b)

Value

Corresponding vector of double typed values for a given vector of bytes

Arguments

b

A vector of bytes (unsigned chars in C++)

Author

Mehmet Hakan Satman - mhsatman@istanbul.edu.tr

See Also

DoubleVectorToBytes

BytesToDouble

ByteVectorToDoubles

Examples

Run this code
a <- DoubleVectorToBytes(c(56.54, 89.7666, 98.565))
b <- ByteVectorToDoubles(a)
print(b)

Run the code above in your browser using DataLab