lettersToDecimal: Converts a letters-based representation into normal base 10...

Description Usage Arguments Examples

View source: R/lettersToDecimal.R

Description

In effect, this reverses the effect of split where output files are numbered with letters. This can be used to convert from other spaces too.

Usage

1

Arguments

...

objects to be converted

space

the original space, such as letters, LETTERS or 1:10 (which will do nothing)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
lettersToDecimal("aaaa")
lettersToDecimal("bczf")

# Using the space of uppercase letters
lettersToDecimal("BCFZ", space = LETTERS)

# To work with mixed case, use tolower or similar
lettersToDecimal(tolower("Bczf"))

# Multiple inputs, the following lines are equivalent:
lettersToDecimal("aaaa", "bczf")
lettersToDecimal(c("aaaa", "bczf"))

xrobin/xavamess documentation built on June 15, 2021, 3:46 a.m.