samedi 25 novembre 2017

Find entire row in R data frame?

I have a large dataframe df with 10 columns.

For example:

col1 col2 col3 col4 col5 col6 ......
a    22   13   dd   kuku ppp
q    123  444  dff  pupu sds

I get a new record rec1 with the same structure (10 columns):

rec1 <-  col1 col2 col3 col4 col5 col6 ......
         a    22   13   dd   kuku ppp

I want to search df and return true/false if I have found this row or not. Please advise how to do this? Dplyr filter?

Aucun commentaire:

Enregistrer un commentaire