binary: binary

Description Usage Arguments Details Value Author(s) Examples

View source: R/binary.R

Description

binary Gives the binary representaion of value q in a vector of lenghth n

Usage

1
binary(q, n)

Arguments

q

a numeric value

n

a numeric value

Details

If n is not specified, it defaults to a output a vector of length 10, so q must be less than 1024

Value

a vector of length n in binary representation

Author(s)

Hannah Lennon <drhannahlennon@gmail.com>

Examples

1
2
binary(10)
binary(10, 5)

hlennon/copulaIVTS documentation built on Dec. 20, 2021, 4:45 p.m.