compare.list | R Documentation |
List Comparison
## S3 method for class 'list'
compare(a, b)
a |
A List |
b |
A List |
Compare elements of two equal length lists.
A vector with a logical indicator for equality of each element author Jared P. Lander www.jaredlander.com
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.