[
https://issues.apache.org/jira/browse/ARROW-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16748852#comment-16748852
]
Wes McKinney commented on ARROW-1560:
-------------------------------------
R returns null by default
{code}
> match(c(1, 2, 3), c(2, 3, 4))
[1] NA 1 2
{code}
It's configurable though
{code}
> match(c(1, 2, 3), c(2, 3, 4), nomatch=-1)
[1] -1 1 2
{code}
> [C++] Kernel implementations for "match" function
> -------------------------------------------------
>
> Key: ARROW-1560
> URL: https://issues.apache.org/jira/browse/ARROW-1560
> Project: Apache Arrow
> Issue Type: New Feature
> Components: C++
> Reporter: Wes McKinney
> Priority: Major
> Labels: Analytics
> Fix For: 0.13.0
>
>
> Match computes a position index array from an array values into a set of
> categories
> {code}
> match(['a', 'b', 'a', null, 'b', 'a', 'b'], ['b', 'a'])
> return [1, 0, 1, null, 0, 1, 0]
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)