giveEncoding {RaMS}R Documentation

Convert from R numeric vector to compressed binary

Description

Convert from R numeric vector to compressed binary

Usage

giveEncoding(mzint_vals, compression_type, bin_precision, endi_enc)

Arguments

mzint_vals

A numeric vector of m/z or intensity values

compression_type

Compression type to be used by memCompress

bin_precision

The bit (?) precision used by writeBin

endi_enc

The byte order (?) of the string. For mzML this is always "little" but mzXML can also be "big"

Value

A single base64-encoded string of compressed binary values


[Package RaMS version 1.4.0 Index]