XLConnect (version 0.2-14)

cref2idx: Converting Excel cell references to indices

Description

Converts Excel cell references to row & column indices

Usage

cref2idx(x)

Arguments

x

Character vector of Excel cell references (e.g. "$A$20", "B18", ...)

Value

Returns a numeric matrix with two columns and as many rows as cell references that have been provided. The first column represents the row indices and the second column represents the column indices.

See Also

idx2cref, col2idx, idx2col, idx2aref, aref2idx, aref

Examples

Run this code
# NOT RUN {
cref2idx(c("$A$20", "B18"))
# }

Run the code above in your browser using DataCamp Workspace