char.expand() function in R Language is used to seek a unique match of its first argument among the elements of its second. If successful, it returns this element; otherwise, it performs an action specified by the third argument.
Syntax: char.expand(input, target, nomatch = stop(“no match”))
input: character string to be expanded
target: character vector with the values to be matched against
nomatch: an R expression to be evaluated in case expansion was not possible
 "and"  "and"  "and"
 NA Warning message: In eval(nomatch) : no expand
- Make Elements of a Vector Unique in R Programming - make.unique() Function
- Find positions of Matching Elements between Vectors in R Programming - match() Function
- Getting Match of an Element within a Vector in R Programming - charmatch() Function
- Replace the First Match of a Pattern from a String in R Programming – sub() Function
- Seek a Match for the Pattern in the String in R Programming - pmatch() Function
- Remove Duplicate Elements from an Object in R Programming - unique() Function
- Apply a Function over a List of elements in R Programming - lapply() Function
- Generate a Vector of specified length with each element as a unique color on RGB scale in R Language - topo.colors() Function
- Generate a Vector of specified length with each element as a unique color on RB scale in RGB spectrum in R Language - cm.colors() Function
- Generate a Vector of specified length with each element as a unique color on RG scale in RGB spectrum in R Language - terrain.colors() Function
- Check if a Function is a Primitive Function in R Programming - is.primitive() Function
- Get Exclusive Elements between Two Objects in R Programming - setdiff() Function
- Add Leading Zeros to the Elements of a Vector in R Programming - Using paste0() and sprintf() Function
- Check for Presence of Common Elements between Objects in R Programming - is.element() Function
- Check if Elements of a Vector are non-empty Strings in R Programming - nzchar() Function
- Concatenation of Elements without Separator in R Programming - paste0() Function
- Replace the Elements of a Vector in R Programming - replace() Function
- Creating a Vector of sequenced elements in R Programming - seq() 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
- Sort elements of an Object by its Index Values in R Programming - order() 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.