"match" function in Dplyr package


please tell me the code for match function in dplyr package in r


Hi @Somu

if I understand well you want to elect one or more observations of the data frame if this is trace case check the function dplyr::filter()

Have fun



You can use filter() function in dplyr package as:
filter(dataset, column_name == "value") to filter out the rows based on a particular value.

For a more intense search you can use grepl() function from the same dplyr package. It can be used to filter out rows in a dataframe based on a particular substring in a column value, as:
grepl("substring", dataset$column_name)

I hope this helps.