首页 > 其他 > 详细

R语言算术运算和逻辑运算

时间:2014-07-14 00:01:40      阅读:2253      评论:0      收藏:0      [点我收藏+]

Arithmetic Operators

 

Operator Description
+ addition
- subtraction
* multiplication
/ division
^ or ** exponentiation
x %% y modulus (x mod y) 5%%2 is 1
x %/% y integer division 5%/%2 is 2

Logical Operators

 

Operator Description
< less than
<= less than or equal to
> greater than
>= greater than or equal to
== exactly equal to
!= not equal to
!x Not x
x | y x OR y
x & y x AND y
isTRUE(x) test if X is TRUE

R语言算术运算和逻辑运算,布布扣,bubuko.com

R语言算术运算和逻辑运算

原文:http://www.cnblogs.com/emanlee/p/3840323.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!