is an option for JoinAcross that specifies how to handle pairs of elements that are not being joined but nevertheless have the same key.
- Possible settings for KeyCollisionFunction include:
None drop both elements Left include only the left element (default) Right include only the right element func apply func to generate a pair of new keys
Basic Examples (4)
When a matching key b is not used for joining, the left value for this key is used by default:
Use KeyCollisionFunction to specify which value of the colliding key should be returned:
Generate new keys instead of a colliding key:
Specify which values to take for colliding keys:
Wolfram Research (2015), KeyCollisionFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/KeyCollisionFunction.html.
Wolfram Language. 2015. "KeyCollisionFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KeyCollisionFunction.html.
Wolfram Language. (2015). KeyCollisionFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/KeyCollisionFunction.html