Reserved words in R Programming

I this tutorial we are going to see the reserved words in R Programming language.

Reserved words in R Programming

Reserved Words of R Programming Language

Every programming language reserves certain words and it can be used in making variables in the Programming language source code. In this tutorial we are going to explore the reserved key words of R Programming language.

In R Programming langue reserved words are special words which is important in this programming language. The reserved words can't be used for making variables or similar things in R Programming language.

If developer uses these words program will throw error and won't work. So, as R programmer you should first learn these reserved words and don't use it in making variables.

These reserved words can't be used to make any identifiers such as variables, functions etc...

Here is the list of reserved words in R Programming:

if else repeat while
function for in next
Inf NaN NA NA_integer_
NA_real_ NA_complex_ NA_character_  

You can't use these as identifiers in R Programming language.

You can find names all these reserved words by typing:

> ?reserved

on the rgui console.

In this tutorial we have understood the reserved words in R Programming language.

R Programming Online Training

Join our online programming training course and learn it from experts.


  1. Introduction to the ReactJS
  2. ReactJs Tutorial
  3. How long does it take to learn R Programming?
  4. R Programming for Data Science
  5. Reserved words in R Programming
  6. Downloading and Installing RStudio
  7. Running R script from command line
  8. R command not found Windows
  9. R Hello World Example
  10. R Programming Setup
  11. Overview of R Programming
  12. R Tutorial
  13. Question Answer
  14. Question-Answer Guidelines
  15. Regular Expressions
  16. Finding start and end index of string using Regular expression
  17. Matching Zip code using regular expression
  18. Match string using regular expression without Case sensitivity
  19. Pattern resetting using regular expression
  20. Replacing all the text of String using expression
  21. Reset the matcher using regular expression
  22. Split string after each character using regular expression
  23. Appending and replacing string using regular expression
  24. Finding word using regular expression
  25. Pointing and indicating matcher using regular expression
  26. Pointing last index of the Matcher
  27. Replacing the first subsequence of the input
  28. Finding a given word using regular expression
  29. Matching Address using regular expressions
  30. Retrieve the String using expression
  31. Retrieving String after given Regular expression
  32. Retrieving String by using Regular Expression
  33. Calculating Repetingwords using Regular expression
  34. Listing Directory using Regular expression
  35. Print Matchingwords using Regular expression
  36. Replacing String using Regularexpression
  37. Split Demo using RegularExpression
  38. Interchanging String using RegularExpression
  39. Matching Pattern using Regularexpression