Binary sequence.

binSeq(x, ...)

Arguments

x

a sequence.

...

used for dec2bin().

Value

a sequence list of binary digits.

See also

Examples

rdiversity:::binSeq(0:4)
#> [[1]]
#> [1] 0
#> 
#> [[2]]
#> [1] 1
#> 
#> [[3]]
#> [1] 1 0
#> 
#> [[4]]
#> [1] 1 1
#> 
#> [[5]]
#> [1] 1 0 0
#>