Learn R Programming

mark (version 0.8.1)

base_alpha: Alpha base

Description

Base 26 conversion with letters

Usage

base_alpha(x, base = 26)

Value

A vector of integers

Arguments

x

A string of letters. Non characters are removed.

base

A numeric

Examples

Run this code
base_alpha("AB")
base_alpha("XFD")
base_alpha(c("JMB", "Jordan Mark", "XKCD"))
sum(base_alpha(c("x", "k", "c", "d")))

Run the code above in your browser using DataLab