Dragoș Moldovan-Grünfeld created ARROW-15712:
------------------------------------------------

             Summary: [R] Add a {{type}} method for {{Expression}} 
                 Key: ARROW-15712
                 URL: https://issues.apache.org/jira/browse/ARROW-15712
             Project: Apache Arrow
          Issue Type: Improvement
          Components: R
            Reporter: Dragoș Moldovan-Grünfeld


This would allow for more consistent syntax when extracting the type of an 
expression.

A block like this:
{code:r}
if (inherits(x, "Expression")) { 
class <- x$type()$ToString() 
} else { 
class <- type(x)$ToString() 
}
{code}

would be simplified to 
{code:r}
class <- type(x)$ToString()
{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to