grepl() function in R Language is used to return the value True if the specified pattern is found in the vector and false if it is not found.
Syntax: grepl(pattern, string, ignore.case=FALSE)
pattern: regular expressions pattern
string: character vector to be searched
ignore.case: whether to ignore case in the search. Here ignore.case is an optional parameter as is set to FALSE by default.
 TRUE TRUE FALSE FALSE  TRUE TRUE TRUE TRUE
 FALSE TRUE FALSE FALSE  FALSE FALSE TRUE TRUE
- Check for the Existence of a Vector Object in R Programming - is.vector() Function
- Check if Elements of a Vector are non-empty Strings in R Programming - nzchar() Function
- Convert an Object into a Vector in R Programming - as.vector() Function
- Check if the elements of a Vector are Finite, Infinite or NaN values in R Programming - is.finite(), is.infinite() and is.nan() Function
- Sorting of a Vector in R Programming - sort() Function
- Combine Arguments into a Vector in R Programming - c() Function
- Divide a Vector into Ranges in R Programming - cut() Function
- Creating a Vector of sequenced elements in R Programming - seq() Function
- Getting Match of an Element within a Vector in R Programming - charmatch() Function
- Binning a Numeric Vector in R Programming - .bincode() Function
- Return the Index of the First Minimum Value of a Numeric Vector in R Programming - which.min() Function
- Return the Index of the First Maximum Value of a Numeric Vector in R Programming - which.max() Function
- Extracting Substrings from a Character Vector in R Programming - substring() Function
- Calculate the Cumulative Minima of a Vector in R Programming - cummin() Function
- Calculate the Cumulative Maxima of a Vector in R Programming - cummax() Function
- Get the Minimum and Maximum element of a Vector in R Programming - range() Function
- Adding Noise to a Numeric Vector in R Programming - jitter() Function
- Add Leading Zeros to the Elements of a Vector in R Programming - Using paste0() and sprintf() Function
- Calculate the difference between Consecutive pair of Elements of a Vector in R Programming - diff() Function
- Return a Logical Vector with Missing Values removed in R Programming - complete.cases() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.