bitcheck: Function evaluating the flags bit

Description Usage Arguments Value Author(s) Examples

View source: R/fdbk_asdataframe.R

Description

Some feedback file attributes are integers that have to be transformed to a bit string in order to encode the feedback file report (e,g, flags or level_sig). This function takes the integers as input and a vector of bits and returns TRUE/FALSE if bit is part of the bit-converted integer The first bit is 0 (not 1), in agreement with the construction of feedback files.

Usage

1
bitcheck(int, bits)

Arguments

int

a integer or a vector of integers that is converted to bits

bits

a bit or a vector of bits that might be contained in each int

Value

logical if bit is in the converted integer

Author(s)

Felix <[email protected]>

Examples

1
2
3
bitcheck(1:100,0)
DT = data.table(flags=1:10)
DT[bitcheck(flags,0)]

rfxf/Rfdbk documentation built on Dec. 17, 2018, 9:14 a.m.