Reserved words in R

Reserved words are the set of words that have special meaning and function. These keywords cannot be written as identifiers.

ifelserepeatwhilefunction
forinnextbreakTRUE
FALSENULLInfNaNNA
NA_integer_NA_real_NA_complex_NA_character_


Following table highlights the reserved words of R programming –

1If,else,repeat,while,function,for,in,next,break,Used in loops, conditions, and functions
2TRUE,FALSELogical constants
3NULLAbsence of a value/undefined value
4InfInfinity
5NaNNot a Number
6NANot Available
7NA_integer_,NA_real_,NA_complex_,NA_ character_Constants of other atomic vector types supporting missing values
8Lets one function to pass argument settings to another

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
28 + 7 =