giveEncoding: Convert from R numeric vector to compressed binary

View source: R/minifyMSFunctions.R

giveEncodingR 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


RaMS documentation built on Oct. 9, 2024, 9:06 a.m.