exists() function in R Language is used to check if an object with the names specified in the argument of the function is defined or not. It returns TRUE if the Object is found.
name: Name of the Object to be searched
 TRUE  TRUE  FALSE
In the above examples, it can be seen that when there was no object named “Hello” defined in the first code, the
exists() function returned FALSE, whereas after the declaration of the “Hello” Object, the
exists() function returned TRUE. This means that the
exists() function checks for pre-defined and user-defined, both objects.
- Return an Object with the specified name in R Programming - get0() and mget() Function
- Search and Return an Object with the specified name in R Programming - get() Function
- Check if the Argument is a Name in R Programming - is.name() Function
- Coercing the Argument to a Name in R Programming - as.name() Function
- Check if an Object is sorted or not in R Programming - is.unsorted() Function
- Applying User-defined Functions on Factor Levels of Dataset in R Programming - by() Function
- Find Location and Character Vector of an Object with partial name in R Language - apropos() and find() Function
- Get Indices of Specified Values of an Array in R Programming - arrayInd() Function
- Extract word from a String at specified position in R Programming - word() Function
- Create Line Curves for Specified Equations in R Programming - curve() Function
- Rounding up to the Specified Number of Significant Digits in R Programming - signif() Function
- Trim a String to a Specified Display Width in R Programming - strtrim() Function
- Generate Factors with specified Levels in R Programming - gl() Function
- Draw a Polygon between specified points in R Programming - polygon() Function
- Replicating a Value to the Specified Length in R Programming - rep_len() Function
- Replicating a Value specified number of times in R Programming - rep.int() Function
- Generate a Sequence from 1 to any Specified Number in R Programming - seq_len() Function
- Get a List of Numbers in the Specified Range in R Programming - seq.int() Function
- Get the Hexadecimal Code of the Specified Shade in R Programming - rgb() Function
- Create a Range of Colors between the Specified Colors in R Programming - colorRampPalette() 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 firstname.lastname@example.org. 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.