Description Usage Arguments Details Value Functions Author(s) Examples
Convert combinatorial states in decimal representation to combinatorial states in binary representation and vice versa.
1 2 3 |
dec |
A vector with whole numbers. |
colnames |
The column names for the returned matrix. If specified, |
ndigits |
The number of digits that the binary representation should have. If unspecified, the shortest possible representation will be chosen. |
bin |
A matrix with only 0 and 1 (or TRUE and FALSE) as entries. One combinatorial state per row. |
chromstaR uses decimal numbers to represent combinatorial states of peaks. These functions serve as a convenient way to get from the efficient decimal representation to a more human-readable binary representation.
A vector of integers for bin2dec
and a matrix of logicals with one state per row for dec2bin
.
dec2bin
: Decimal to binary conversion.
bin2dec
: Binary to decimal conversion.
Aaron Taudt
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.