[
https://issues.apache.org/jira/browse/SPARK-13436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oscar D. Lara Yejas updated SPARK-13436:
----------------------------------------
Issue Type: Task (was: Bug)
> Add parameter drop to subsetting oeprator
> -----------------------------------------
>
> Key: SPARK-13436
> URL: https://issues.apache.org/jira/browse/SPARK-13436
> Project: Spark
> Issue Type: 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]