compare.list: List Comparison

Description Usage Arguments Details Value Examples

View source: R/comparisons.r

Description

List Comparison

Usage

1
2
## S3 method for class 'list'
compare(a, b)

Arguments

a

A List

b

A List

Details

Compare elements of two equal length lists.

Value

A vector with a logical indicator for equality of each element author Jared P. Lander www.jaredlander.com

Examples

1
2
3
4
5
6
vect <- c(mean, mode, mean)
vect2 <- c(mean, mode, max)
vect3 <- c(mean, mean)
compare.list(vect, vect)
compare.list(vect, vect2)
tryCatch(compare.list(vect, vect3), error=function(e) print("Caught error"))

useful documentation built on June 7, 2017, 9:02 a.m.

Search within the useful package
Search all R packages, documentation and source code