Skip to contents

Extracts the nth bit from bitstring; the first (leftmost) bit is indexed 0.

Arguments

bitstring

BIT

index

INTEGER

Examples

if (FALSE) { # \dontrun{
get_bit('0110010'::BIT, 2)
} # }