base64decode {CorrectOverloadedPeaks}R Documentation

base64decode.

Description

'base64decode' is a copy of a similar function from the caTools package as this package is about to be archived (07/2018).

Usage

base64decode(z, what, size = NA, signed = TRUE, endian = .Platform$endian)

base64encode(x, size = NA, endian = .Platform$endian)

Arguments

z

The base64 encoded string.

what

Define output type of z (e.g. 'numeric').

size

Encoding size (provide if you know it).

signed

Parameter passed through to 'readBin'.

endian

Parameter passed through to 'readBin'.

x

The value vector to be encoded.

Details

‘base64decode' will convert base64 encoded strings into R values.#’

Value

Decoded value of z.#'

Examples

## Not run: 
# you need to have the bitops package installed to run the example
x <- c(10, 0.2, 123456)
(z <- base64encode(x = x))
base64decode(z = z, what = "numeric")
(x <- as.integer(x))
(z <- base64encode(x = x))
base64decode(z = z, what = "int")

## End(Not run)

[Package CorrectOverloadedPeaks version 1.3.3 Index]