Learn R Programming

rock (version 0.9.6)

base30toNumeric: Conversion between base10 and base30

Description

Note: this function is deprecated; use this function in the {squids} package!

Usage

base30toNumeric(x)

numericToBase30(x)

Value

The converted vector (numeric for base30toNumeric, character for numericToBase30).

Arguments

x

The vector to convert (numeric for numericToBase30, character for base30toNumeric).

Details

The conversion functions from base10 to base30 and vice versa are used by the generate_uids() functions.

The symbols to represent the 'base 30' system are the 0-9 followed by the alphabet without vowels but including the y (see squids::squids-package).

Examples

Run this code
rock::numericToBase30(
  654321
);
rock::base30toNumeric(
  rock::numericToBase30(
    654321
  )
);

Run the code above in your browser using DataLab