Description Usage Arguments Value Examples
loc.col takes as input a data.frame object (dfData
) and a character vector (colNameVec
) of column names and returns a data.frame object displaying the location of the column names from colNameVec
in dfData
. Column names in colNameVec
which cannot be found in dfData
are not included in the output data.frame object.
1 | loc.col(dfData, colNameVec)
|
dfData |
a data.frame object in which the search should be performed. Note that this is not a character string but the data.frame object itself. The parameter passed to the function should be without quotes (" "). |
colNameVec |
a string or a vector of class character indicating the name(s) of the column(s) to be searched. |
loc.col returns a data.frame object containing the column name and the column location for columns from colNameVec
in dfData
.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.