list_diff: Attempt to identify which values were added in the transition...

Description Usage Arguments Value Note

View source: R/ggpack.r

Description

Attempt to identify which values were added in the transition from a to b

Usage

1
list_diff(a, b)

Arguments

a

a list of values

b

another list of values

Value

the values that were added to a to arrive at b

Note

This can cause issues if ambiguous terms are in b, making it impossible to distinguish which arguments were added. For example:

a = c('a', 'b', 'b', 'b', 'a') b = c('a', 'b', 'b', 'c', 'b', 'b', 'a')

makes it impossible to know whether c('b', 'c') was inserted after position 2, or whether c('c', 'b') was inserted after position 3.


dgkf/ggpackets documentation built on May 16, 2019, 7:10 p.m.