Learn R Programming

useful (version 1.2.0)

compare.list: List Comparison

Description

List Comparison

Usage

compare.list(a, b)

Arguments

a
A List
b
A List

Value

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

Details

Compare elements of two equal length lists.

Examples

Run this code
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"))

Run the code above in your browser using DataLab