You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ian Cook (Jira)" <ji...@apache.org> on 2021/05/13 20:58:00 UTC
[jira] [Commented] (ARROW-12781) [R] Define ArrowDatum methods for
is.type() generic functions
[ https://issues.apache.org/jira/browse/ARROW-12781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17344127#comment-17344127 ]
Ian Cook commented on ARROW-12781:
----------------------------------
[~npr] what do you think about whether these should be defined as {{ArrowDatum}} methods or only defined in {{nse_funcs}}?
> [R] Define ArrowDatum methods for is.type() generic functions
> -------------------------------------------------------------
>
> Key: ARROW-12781
> URL: https://issues.apache.org/jira/browse/ARROW-12781
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Ian Cook
> Priority: Major
>
> Define {{ArrowDatum}} methods for the base R generic {{is.type()}} functions, including:
> * {{is.numeric()}}
> * {{is.double()}}
> * {{is.integer()}}
> * {{is.integer64()}}
> * {{is.character()}}
> * {{is.logical()}}
> * {{is.factor() # TRUE for dictionary types}}
> * {{is.ordered() # TRUE for ordered dictionary types}}
> * {{is.list() # TRUE for ListArrays}}
> Consider whether it would be better to define some or possibly all these only for dplyr (in {{nse_funcs}}, not as {{ArrowDatum}} methods) to prevent users from being confused when, for example, {{is.list()}} returns {{TRUE}} on an object that is not an R list.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)