-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Define functions in nse_funcs for all the important base R generic is.type() functions, including:
-
is.numeric() -
is.double() -
is.integer() -
is.integer64() -
is.character() -
is.logical()Maybe also:
-
is.factor() # TRUE for dictionary types -
is.ordered() # TRUE for ordered dictionary types -
is.list() # TRUE for ListArraysI think the easiest way to implement this would be to check
$type_id()against theTypeenum values, for example:array$type_id() %in% Type[c("UINT8", "INT8", ...)]
For this to work the same way on unevaluated
Expressioncolumns inarrow_dplyr_queryobjects, add a public functiontype_id()to theExpressionR6 class like this:type_id = function(schema) compute___expr__type(self, schema)$id,
Reporter: Ian Cook / @ianmcook
Assignee: Ian Cook / @ianmcook
Related issues:
- [R] Support tidyselect where() selection helper in dplyr verbs (is depended upon by)
PRs and other links:
Note: This issue was originally created as ARROW-12781. Please see the migration documentation for further details.