Basic Operators:- #basic operator 2+2 2-2 2*2 2/2 sqrt(2) 2^2 2**4 10 %% 3 # modulus division 10 %/% 3 # integer division Logical Operator :- # logical operator a=3:5 b=5:7 a>4 a<4 a<=4 a>=4 a==4 a!=4 Combine logical operations :- #combine logical operation (a==4) & (b==6) (a==4) | (b==6) Reference :- https://cran.r-project.org/doc/manuals/r-release/R-intro.html#The-R-environment
No comments: