equal | R Documentation |
These functions and operators allow comparison of RStatic objects.
equal(x, y)
## S3 method for class 'ASTNode'
x == y
## S3 method for class 'ASTNode'
x != y
x , y |
(ASTNode) The objects to compare. |
These functions traverse the given RStatic objects to check that their children are also equal. Except for Symbol names and Literal values, fields that do not contain children are ignored.
A logical scalar indicating the result of the comparison.
x = code_objects_ast(a <- 3)
y = code_objects_ast(a <- 3)
z = code_objects_ast(a <- 4)
x == y
y == z
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.