Last active
November 8, 2018 16:12
-
-
Save rpkyle/622155e24f603fc54a664b06f8036f3d to your computer and use it in GitHub Desktop.
List of R reserved words
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a set of R reserved words that cannot be used as function argument names. | |
# | |
# Reserved words can be obtained from R's help pages by executing the statement below: | |
# > ?reserved | |
reserved_words = set([ | |
'if', | |
'else', | |
'repeat', | |
'while', | |
'function', | |
'for', | |
'in', | |
'next', | |
'break', | |
'TRUE', | |
'FALSE', | |
'NULL', | |
'Inf', | |
'NaN', | |
'NA', | |
'NA_integer_', | |
'NA_real_', | |
'NA_complex_', | |
'NA_character_', | |
'...' | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment