[ 
https://issues.apache.org/jira/browse/SPARK-13436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shivaram Venkataraman resolved SPARK-13436.
-------------------------------------------
       Resolution: Fixed
         Assignee: Oscar D. Lara Yejas
    Fix Version/s: 2.0.0

Resolved by https://github.com/apache/spark/pull/11318

> Add parameter drop to subsetting operator [
> -------------------------------------------
>
>                 Key: SPARK-13436
>                 URL: https://issues.apache.org/jira/browse/SPARK-13436
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SparkR
>            Reporter: Oscar D. Lara Yejas
>            Assignee: Oscar D. Lara Yejas
>             Fix For: 2.0.0
>
>
> Parameter drops allows to return a vector/data.frame accordingly if the 
> result of subsetting a data.frame has one single column (see example below). 
> The same behavior is needed on a DataFrame.
> > head(iris[, 1, drop=F])
>   Sepal.Length
> 1          5.1
> 2          4.9
> 3          4.7
> 4          4.6
> 5          5.0
> 6          5.4
> > head(iris[, 1, drop=T])
> [1] 5.1 4.9 4.7 4.6 5.0 5.4



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to