anyBaseToDecimal: Convert from anybase to decimal

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Convert from anybase to decimal

Usage

1
anyBaseToDecimal(value, symbols = LETTERS, zero_indexed = FALSE)

Arguments

value

The starting value

symbols

A vector containing all of the symbols used in the origin place value system listed in sequential order.

zero_indexed

Logical. Set to TRUE if the first value in symbols represents 1, FALSE if 0.

Value

value converted to decimal

Examples

1
2
3
4
library(magrittr)
anyBaseToDecimal("A")
anyBaseToDecimal("ABC")
anyBaseToDecimal("FF", symbols = c(0:9, LETTERS[1:6]), zero_indexed=TRUE) #hex to decimal

hemoshear/assayr2 documentation built on Nov. 8, 2019, 6:13 p.m.