Learn R Programming

diffobj (version 0.3.6)

any,Diff-method: Determine if Diff Object Has Differences

Description

Determine if Diff Object Has Differences

Usage

# S4 method for Diff
any(x, ..., na.rm = FALSE)

Value

TRUE if there are differences, FALSE if not, FALSE with warning if there are no differences but objects are not all.equal

Arguments

x

a Diff object

...

unused, for compatibility with generic

na.rm

unused, for compatibility with generic

Examples

Run this code
any(diffChr(letters, letters))
any(diffChr(letters, letters[-c(1, 5, 8)]))

Run the code above in your browser using DataLab