Description Usage Arguments Value Examples
loc.row takes as input a column (dfCol
) and a vector (vec
) of elements and returns a single vector containing the row numbers where the values in vec
are found in column dfCol
. The row numbers in the output vector have one of the values present in vec
in column dfCol
.
1 | loc.row(dfCol, vec)
|
dfCol |
a column of a data.frame object. Note that this is not a character string but the column itself (refer to examples). |
vec |
a vector (numeric/character) indicating the elements which are to be searched. |
loc.row returns the vector of row numbers from the dfCol
which have values in to vec
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.