Learn R Programming

IdMappingAnalysis (version 1.16.0)

Misc$to.base: Convert number to a numeric vector of a given base

Description

Convert number to a numeric vector of a given base.

Usage

## Static method (use this): ## Misc$to.base(n, base=2, r=TRUE, ...)
## Don't use the below: "to.base"(static, n, base=2, r=TRUE, ...)

Arguments

n
Number to convert.
base
Base to use for a conversion. Default is 2.
r
Order of the output nnumbers If r=TRUE then big-endian otherwise small-endian. Default is TRUE.
...
Not used

Value

numeric vector of a given base.

See Also

For more information see Misc.

Examples

Run this code
 b<-Misc$to.base(25);
 

Run the code above in your browser using DataLab