| diff_lists | R Documentation |
Computes the sum of absolute differences between two lists using diff_vecs().
diff_lists(l1, l2, name = NULL)
l1 |
A list. |
l2 |
A list. |
name |
A string, default to |
Returns the sum of absolute differences between l1 and l2 if name is NULL, or that between l1[[name]] and l2[[name]] otherwise. If name is not NULL and if name is in exactly one of l1 and l2, returns Inf; if name is in neither, returns NA. Exception: Returns a positive integer if the two elements compared hold NA, NULL or Inf values in different places.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.