substring() function in R Language is used to extract substrings in a character vector.
Syntax: substring(text, first, last)
text: character vector
first: integer, the first element to be replaced
last: integer, the last element to be replaced
 "ee"  "Geek"  "G"  "g"
 "FG" "fg" "ee"  "GFG" "gfg" "Gee"  "F" "f" "e"
- Convert an Object into a Vector in R Programming - as.vector() Function
- Check for the Existence of a Vector Object in R Programming - is.vector() Function
- Create a Vector of Colors from a Vector of Gray Levels in R Programming - gray() or grey() Function
- Check if Object is of the Character Data type in R Programming - is.character() Function
- Check if an Object is of Type Character in R Programming - is.character() Function
- Convert a Numeric Object to Character in R Programming - as.character() Function
- Find Location and Character Vector of an Object with partial name in R Language - apropos() and find() Function
- Add Leading Zeros to the Elements of a Vector in R Programming - Using paste0() and sprintf() Function
- Check if Elements of a Vector are non-empty Strings in R Programming - nzchar() Function
- Make Elements of a Vector Unique in R Programming - make.unique() Function
- Compute the gamma value of a Non-negative Numeric Vector in R Programming - gamma() Function
- Check if values in a vector are True or not in R Programming - all() and any() Function
- Getting Match of an Element within a Vector in R Programming - charmatch() Function
- Replace the Elements of a Vector in R Programming - replace() Function
- Find String Matches in a Vector or Matrix in R Programming - str_detect() Function
- Creating a Vector of sequenced elements in R Programming - seq() Function
- Convert a Vector into Factor in R Programming - as.factor() 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
- Get the Minimum and Maximum element of a Vector in R Programming - range() 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.