Description Usage Arguments Description
Return column index
1 |
df |
A data frame |
x |
A (quoted) column name |
Sometimes it is useful to find or pass columns by position. This is a simple shortcut that returns the numeric index of a data frame column (or columns). Calls internal col.loc() function (the original 1-variable version of varwhich)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.