[
https://issues.apache.org/jira/browse/SPARK-9316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14717328#comment-14717328
]
Felix Cheung commented on SPARK-9316:
-------------------------------------
As for this,
>> subsetdf <- df["age in (19, 30),1:2"]
>Error in df["age in (19, 30),1:2"] :
>object of type 'S4' is not subsettable
I believe this should be `df["age in (19, 30)",1:2]` instead?
I had a iteration of the change to port this but the code turns out to be
convoluted, as the "character" vector can also have something like this "age"
that matches a column.
Please let us know if this is something we should support.
> 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]