[
https://issues.apache.org/jira/browse/ARROW-12908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ian Cook reassigned ARROW-12908:
--------------------------------
Assignee: Ian Cook
> [R] Allow string input to as_type()
> -----------------------------------
>
> Key: ARROW-12908
> URL: https://issues.apache.org/jira/browse/ARROW-12908
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Ian Cook
> Assignee: Ian Cook
> Priority: Minor
>
> Currently the function {{as_type()}} expects argument {{type}} to be a
> {{DataType}}, e.g.
> {code:r}
> as_type(int32())
> ## Int32
> ## int32{code}
> It would be nice if this function could also accept a string and return a
> {{DataType}}, e.g.
> {code:r}
> as_type("int32")
> ## Int32
> ## int32{code}
> See discussion here:
> [https://github.com/apache/arrow/pull/10327#discussion_r640171712]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)