R: Reserved Words in R (original) (raw)

Reserved {base} R Documentation

Description

The reserved words in R's parser are

[if](../../base/help/if.html) [else](../../base/help/else.html) [repeat](../../base/help/repeat.html) [while](../../base/help/while.html) [function](../../base/help/function.html) [for](../../base/help/for.html) in [next](../../base/help/next.html) [break](../../base/help/break.html)

[TRUE](../../base/help/TRUE.html) [FALSE](../../base/help/FALSE.html) [NULL](../../base/help/NULL.html) [Inf](../../base/help/Inf.html) [NaN](../../base/help/NaN.html) [NA](../../base/help/NA.html) [NA_integer_](../../base/help/NA%5Finteger%5F.html) [NA_real_](../../base/help/NA%5Freal%5F.html) [NA_complex_](../../base/help/NA%5Fcomplex%5F.html) [NA_character_](../../base/help/NA%5Fcharacter%5F.html)

... and ..1, ..2 etc, which are used to refer to arguments passed down from a calling function, see [...](../../base/help/....html).

Details

Reserved words outside quotes are always parsed to be references to the objects linked to in the ‘Description’, and hence they are not allowed as syntactic names (see[make.names](../../base/help/make.names.html)). They are allowed as non-syntactic names, e.g. inside backtick quotes.


[Package _base_ version 4.6.0 Index]