compareLists | R Documentation |
Compares lists element-wise. Created for purpose of comparing two lists consisting of data frames, where each list is from a different data-pull date.
compareLists(list1, list2, lnames)
list1 |
a list |
list2 |
a list |
lnames |
a vector of length 2 supplying names of list |
The output is a text summary of element-wise list comparisons
l1 <- list(tmp1 = data.frame(x = 1:100, y = 100:1), tmp2 = data.frame(a = letters, b = LETTERS)) l2 <- list(tmp1 = data.frame(x = 1:99, y = 99:1), tmp2 = data.frame(a = letters[1:14], b = LETTERS[1:14])) compareLists(l1, l2) compareLists(l2, l1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.