Syntax(base)
Syntax()所属R语言包:base
Operator Syntax and Precedence
运算符的语法和优先级
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Outlines R syntax and gives the precedence of operators
概述R语法,并给出了运算符的优先
Details
详情----------Details----------
The following unary and binary operators are defined. They are listed in precedence groups, from highest to lowest.
下面的一元和二元运算符的定义。他们列在优先组,从最高到最低。
Within an expression operators of equal precedence are evaluated from left to right except where indicated.
在表达式运算符优先级相同的评估除另有注明外从左至右。
The binary operators ::, :::, $ and @ require names or string constants on the right hand side, and the first two also require them on the left.
二元运算符::,:::,$和@需要在右边的名称或字符串常量,和前两个他们还需要在左侧。
The links in the See Also section cover most other aspects of the basic syntax.
在链接参见节涵盖基本语法等方面。
注意----------Note----------
There are substantial precedence differences between R and S. In particular, in S ? has the same precedence as (binary) + - and & && | || have equal precedence.
有实质性的优先级R和S的差异,特别是在S?,具有相同的优先级(二进制)+ -和& && | ||有相同的优先级。
参考文献----------References----------
The New S Language. Wadsworth & Brooks/Cole.
参见----------See Also----------
Arithmetic, Comparison, Control, Extract, Logic, NumericConstants, Paren, Quotes, Reserved.
Arithmetic,Comparison,Control,Extract,Logic,NumericConstants,Paren,Quotes,Reserved。
The R Language Definition manual.
R语言定义手册。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|