[ 
https://issues.apache.org/jira/browse/SPARK-13436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157867#comment-15157867
 ] 

Apache Spark commented on SPARK-13436:
--------------------------------------

User 'mgummelt' has created a pull request for this issue:
https://github.com/apache/spark/pull/11311

> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to