FindMatchingRow | R Documentation |
It outputs a logical vector identifying which rows in DF
have the same values as the values on rowtoMatch
. It ignores all columns that are not found on rowtoMatch
when doing the matching.
FindMatchingRow(rowtoMatch, DF)
rowtoMatch |
One row of a data frame. If the length is longer, it won't output it. |
DF |
Dataframe in which we want to find the matches. It doesn't search that both the row of Df and rowtoMatch matches exactly, it only checks whether the columns that are found on rowtoMatch are found on DF with the same values (It decides which columns are "the same column" by looking at the names of the columns). It will throw an error if the names of the columns on |
Note: It matches using the name of columns from rowtoMatch
, matching them to the names of the DF
.
It will output logical(0)
if the rowtoMatch
is null, or if is a data frame with 0 rows.
Logical vector, with the same length as the number of rows in DF
. It outputs TRUE
if that row matched the rowtoMatch
, FALSE
otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.