Description Usage Arguments Details Value Author(s) See Also Examples
Obtain column number or variable name from Excel named Columns
1 | excelMatch(..., n = NULL, names = NULL)
|
... |
An Excel-like string consisting of all capital letters (e.g., "AAQ", "BZ", "RQ", "S", etc.) |
n |
the number of columns of the data of interest |
names |
the column names of the data of interest |
Excel columns are labeled with letters (e.g., A, B, C, ... AA, AB, AC, etc). This function accepts a string (e.g., "AAC") and returns either a number that indicates where that string falls in the sequence of excel named columns, or it returns the variable name corresponding to that column number.
either a variable name or column number
Dustin Fife
1 2 3 4 5 | fake.names = paste("Variable", 1:1000, sep="")
# find the Variable name corresponding to AC
excelMatch("AC", names=fake.names)
# find the column number instead
excelMatch("AC", n=1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.