compareIdentical: Compare Two Objects for Identity

Description Usage Arguments Value Author(s) See Also Examples

View source: R/same.R

Description

This function is just a wrapper for the identical() function to determine whether two objects are identical. Its usefulness is in being able to be combined with other functions in the compare package that perform much more relaxed comparisons.

Usage

1

Arguments

model

The “correct” object.

comparison

The object to be compared with the model.

transform

A character vector containing any transformations that have been performed on the objects prior to this comparison.

...

Allows arguments that are only relevant to other comparison functions.

Value

An object of class "comparison". Use isTRUE() to determine whether the comparison has succeeded.

Author(s)

Paul Murrell

See Also

compare and compareEqual

Examples

1
2
compareIdentical(1:10/10, 1:10/10)
compareIdentical(1:10/10, 3:12/10 - 2/10)

Example output

Attaching package:compareThe following object is masked frompackage:base:

    isTRUE

TRUE
FALSE

compare documentation built on May 2, 2019, 10:24 a.m.