Learn R Programming

autoharp (version 0.2.0)

only_actual_args_differ: Checks if two expressions differ only in terms of actual arguments

Description

Checks if two expressions differ only in terms of actual arguments

Usage

only_actual_args_differ(th1, th2)

Value

Either 1 or 0. 1 means that the two expressions differ only in their actual arguments.

Arguments

th1

A TreeHarp object.

th2

A TreeHarp object.

Details

From the node types, only calls and formal arguments are retained. If these are identical, then a 1 is returned. Otherwise 0 is returned.

Examples

Run this code
ex1 <- TreeHarp(quote(X <- rnorm(10, mean=0.9, sd=4)), TRUE)
ex2 <- TreeHarp(quote(Y <- rnorm(20, mean=9, sd=4)), TRUE)
only_actual_args_differ(ex1, ex2)

Run the code above in your browser using DataLab