R语言关键字列表

必应搜索结果:Hi, this is Bing. I can help you with your query.R keywords are reserved words in the R’s parser that have special meaning and cannot be used as identifiers for variables, functions or objects. Some examples of R keywords are if, else, repeat, while, function, for, in, next and break.
参考网址 R关键字1

Are you looking for a complete list of R keywords or a specific keyword?

for a complete list of R keywords
OK, I found some sources that provide a complete list of R keywords.

One source is 2, which lists the following keywords:

if
else
repeat
while
function
for
in
next
break
TRUE
FALSE
NULL
Inf
NaN
NA
NA_integer_
NA_real_
NA_complex_
NA_character_
Another source is 2, which suggests using the following command to get the list of valid keywords:

#列出关键字的命令是:
ls (asNamespace ("base"), all.names=TRUE)

或者终端命令行输入:

help(reserved)    ## 或
?reserved

I hope this helps.
Do you have any other questions about R keywords?

你可能感兴趣的:(R,r语言)