encode: Convert a value to its representation in another chosen base
Description
The aplEncode function of the project APL in R (https://rpubs.com/deleeuw/158476) has been adapted to follow the standard implementation of the APL encode function.
Usage
encode(base, ind)
Value
A vector or a matrix of the data converted.
Arguments
base
A numeric vector which describes the number system in which we want to recode the data.
ind
The value to convert represented by a number or a numeric vector.