Learn R Programming

RcppMsgPack (version 0.2.4)

msgpack_map: 'MsgPack' Map

Description

A helper function to create a map object for input to 'MsgPack'.

Usage

msgpack_map(key, value)

msgpackMap(key, value)

Value

An data.frame also of class "map" that can be used as input to msgpack_pack.

Arguments

key

A list or vector of keys (coerced to list). Duplicate keys are fine (connects to std::multimap in C++).

value

A list or vector of values (coerced to list). This should be the same length as key.

Examples

Run this code
x <- msgpack_map(key=letters[1:10], value=1:10)
x_packed <- msgpack_pack(x)
x_unpacked <- msgpack_unpack(x_packed)

Run the code above in your browser using DataLab