spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynold Xin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-10106) Add `ifelse` Column function to SparkR
Date Wed, 19 Aug 2015 05:27:46 GMT

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

Reynold Xin updated SPARK-10106:
--------------------------------
    Target Version/s: 1.6.0, 1.5.1  (was: 1.5.0)

> Add `ifelse` Column function to SparkR
> --------------------------------------
>
>                 Key: SPARK-10106
>                 URL: https://issues.apache.org/jira/browse/SPARK-10106
>             Project: Spark
>          Issue Type: New Feature
>          Components: SparkR
>            Reporter: Yu Ishikawa
>
> Add a column function on a DataFrame like `ifelse` in R to SparkR.
> I guess we could implement it with a combination with {{when}} and {{otherwise}}.
> h3. Example
> If {{df$x > 0}} is TRUE, then return 0, otherwise return 1.
> {noformat}
> ifelse(df$x > 0, 0, 1)
> {noformat}



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

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


Mime
View raw message