Learn R Programming

officer (version 0.7.2)

as_base64: Encode Character Vector to Base64

Description

Encodes one or more elements of a character vector into Base64 format.

Usage

as_base64(x)

Value

A character vector of Base64-encoded strings, same length as x.

Arguments

x

A character vector. NA values are preserved.

Examples

Run this code
as_base64(letters)
as_base64(c("hello", NA, "world"))

Run the code above in your browser using DataLab