Convert number to a numeric vector of a given base

Description

Convert number to a numeric vector of a given base.

Usage

1
2
3
4
5
6
## Static method (use this):
## Misc$to.base(n, base=2, r=TRUE, ...)

## Don't use the below:
## S3 method for class 'Misc'
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.

Author(s)

Alex Lisovich, Roger Day

See Also

For more information see Misc.

Examples

1
2
 b<-Misc$to.base(25);
 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.