abc2index: Get the numbers (indices) corresponding to alphabetical...

View source: R/makeXlColAlphabet.r

abc2indexR Documentation

Get the numbers (indices) corresponding to alphabetical colnames

Description

This function supports nchar up to 4, i.e. from "A" to "ZZZZ".

Usage

abc2index(abc)

Arguments

abc

a character vector to be converted to numbers (indices).

Value

an integer vector

Examples

abc2index(letters)         # 1–26
abc2index(c("a", NA, "a")) # 1 NA 1
## Not run: 
 abc2index("zzzza")         # Error

## End(Not run)

JK-junkin/frabento documentation built on Oct. 20, 2023, noon