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/30 14:39:00 UTC

[jira] [Created] (ARROW-12908) [R] Allow string input to as_type()

Ian Cook created ARROW-12908:
--------------------------------

             Summary: [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


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)