convert_base: Converts decimal numbers to other bases

View source: R/old_taxa--internal.R View source: R/internal.R

convert_baseR Documentation

Converts decimal numbers to other bases

Description

Converts from base 10 to other bases represented by a given set of symbols.

Converts from base 10 to other bases represented by a given set of symbols.

Usage

convert_base(
  numbers,
  symbols = letters,
  base = length(symbols),
  min_length = 0
)

convert_base(
  numbers,
  symbols = letters,
  base = length(symbols),
  min_length = 0
)

Arguments

numbers

One or more numbers to convert.

symbols

The set of symbols to use for the new base.

base

The base to convert to.

min_length

The minimum number of symbols in each result.

Value

character vector

character vector


metacoder documentation built on April 4, 2023, 9:08 a.m.