[
https://issues.apache.org/jira/browse/SPARK-9316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14717473#comment-14717473
]
Deborah Siegel commented on SPARK-9316:
---------------------------------------
Now that %in% is exported in namespace, both the filter and the '[' syntax work
with it. Thanks [~shivaram].
[~felixcheung] Not apparent to me at the moment why one would need support for
quoted syntax in the brackets with %in% working.
btw, although filter works with ("age in (19, 30)"), the bracket notation with
the quotes still getting error both ways
> subsetdf <- df["age in (19, 30),1:2"]
Error in df["age in (19, 30),1:2"] :
object of type 'S4' is not subsettable
> subsetdf <- df["age in (19, 30)",1:2]
Error in df["age in (19, 30)", 1:2] :
object of type 'S4' is not subsettable
> Add support for filtering using `[` (synonym for filter / select)
> -----------------------------------------------------------------
>
> Key: SPARK-9316
> URL: https://issues.apache.org/jira/browse/SPARK-9316
> Project: Spark
> Issue Type: Sub-task
> Components: SparkR
> Reporter: Shivaram Venkataraman
> Assignee: Felix Cheung
> Fix For: 1.6.0, 1.5.1
>
>
> Will help us support queries of the form
> {code}
> air[air$UniqueCarrier %in% c("UA", "HA"), c(1,2,3,5:9)]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]