Learn R Programming

bitfield (version 0.6.1)

bf_encode: Encode bit flags into a bitfield

Description

This function picks up the flags mentioned in a registry and encodes them as integer values.

Usage

bf_encode(registry)

Value

data.frame of the same length as the input data. Depending on type and amount of bit flags, this can a table with any number of columns, each of which encodes a sequence of 32 bits into an integer.

Arguments

registry

registry(1)
the registry that should be encoded into a bitfield.

Examples

Run this code
reg <- bf_map(protocol = "na", data = bf_tbl, x = y)

field <- bf_encode(registry = reg)

Run the code above in your browser using DataLab