Top "Grepl" questions

grepl is an R function that searches for matches to argument pattern within each element of a character vector.

grepl in R to find matches to any of a list of character strings

Is it possible to use a grepl argument when referring to a list of values, maybe using the %in% operator? …

r regex grepl
R's grepl() to find multiple strings exists

grepl("instance|percentage", labelTest$Text) will return true if any one of instance or percentage is present. How will I …

r grepl
Filtering observations in dplyr in combination with grepl

I am trying to work out how to filter some observations from a large dataset using dplyr and grepl . I …

r filter dplyr grepl
Use grepl to search either of multiple substrings in a text

I am using grepl() in R to search if either of the following genres exist in my text. I am …

r regex grepl
R how to use grep in if statement

In R I want to do a like in an if statement like the example below where I'm searching for …

r if-statement grepl
Complete word matching using grepl in R

Consider the following example: > testLines <- c("I don't want to match this","This is what I want …

regex r grepl
R - test if a string vector contains any element of another list

I have: > lst_A <- c("TET","RNR") > DT_result <- data.table(lst_B = c("…

r string data.table grepl contain
grepl for a period "." in R?

Lets say I have a string "Hello." I want to see if this string contains a period: text <- "…

r regex grepl
Subset based on list of strings using grepl()?

I'm looking to do something seemingly very simple. I would like to subset a data frame in R using the …

r parsing grepl
Exact match with grepl R

I'm trying to extract certain records from a dataframe with grepl. This is based on the comparison between two columns …

r grepl