OpsCompare | R Documentation |
Binary comparison operators for Container()
objects and
derived classes.
## S3 method for class 'Container'
x == y
## S3 method for class 'Container'
x != y
## S3 method for class 'Container'
x < y
## S3 method for class 'Container'
x > y
## S3 method for class 'Container'
x <= y
## S3 method for class 'Container'
x >= y
x, y |
at least one must be a |
x == y
is TRUE
if the contents of x
and y
are lexicographically equal.
x != y
is TRUE
if the contents of x
and y
are not equal.
x < y
is TRUE
if the contents of x are lexicographically less than the
contents of y.
x <= y
is TRUE
if the contents of x are lexicographically less than
or equal to the contents of y.
c1 = container(1, 2, 3)
c2 = container(1, 3, 2)
c1 == c1 # TRUE
c1 != c2 # TRUE
c1 <= c1 # TRUE
c1 == c2 # FALSE
c1 < c2 # TRUE
c1 < container(2) # TRUE
c1 < container() # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.