R Keywords

In this tutorial you will learn about the R Keywords and its application with practical example.

R Keywords

In R, there are is a set of reserved words that you cannot use as an identifier. These words are known as “reserved words” or “Keywords”. Keywords are standard identifiers and their functions is predefined by the compiler. We cannot use keywords as variable names, class names, or method names, or as any other identifier. By typing help(reserved) or ?reserved on R terminal you can see the list of reserved words or keywords.

Table Of Contents

Following is a R Keyword Table –

R Keywords
if else repeat while function
for in next break TRUE
FALSE NULL Inf NaN NA
NA_integer_ NA_real_ NA_complex_ NA_character_

In this tutorial we have learn about the R Keywords and its application with practical example. I hope you will like this tutorial.