aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/NAMESPACE
diff options
context:
space:
mode:
authorfelixcheung <felixcheung_m@hotmail.com>2015-08-28 18:35:01 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2015-08-28 18:35:13 -0700
commitb7aab1d1838bdffdf29923fc0f18eb04e582957e (patch)
treefb573e7fc44ceb04d648495eab66e35ee86aab74 /R/pkg/NAMESPACE
parentdf4a2e68ad4117ffadd63f5032ff8ca4972c2772 (diff)
downloadspark-b7aab1d1838bdffdf29923fc0f18eb04e582957e.tar.gz
spark-b7aab1d1838bdffdf29923fc0f18eb04e582957e.tar.bz2
spark-b7aab1d1838bdffdf29923fc0f18eb04e582957e.zip
[SPARK-9803] [SPARKR] Add subset and transform + tests
Add subset and transform Also reorganize `[` & `[[` to subset instead of select Note: for transform, transform is very similar to mutate. Spark doesn't seem to replace existing column with the name in mutate (ie. `mutate(df, age = df$age + 2)` - returned DataFrame has 2 columns with the same name 'age'), so therefore not doing that for now in transform. Though it is clearly stated it should replace column with matching name (should I open a JIRA for mutate/transform?) Author: felixcheung <felixcheung_m@hotmail.com> Closes #8503 from felixcheung/rsubset_transform. (cherry picked from commit 2a4e00ca4d4e7a148b4ff8ce0ad1c6d517cee55f) Signed-off-by: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
Diffstat (limited to 'R/pkg/NAMESPACE')
-rw-r--r--R/pkg/NAMESPACE2
1 files changed, 2 insertions, 0 deletions
diff --git a/R/pkg/NAMESPACE b/R/pkg/NAMESPACE
index 5286c01986..9d39630706 100644
--- a/R/pkg/NAMESPACE
+++ b/R/pkg/NAMESPACE
@@ -69,9 +69,11 @@ exportMethods("arrange",
"selectExpr",
"show",
"showDF",
+ "subset",
"summarize",
"summary",
"take",
+ "transform",
"unionAll",
"unique",
"unpersist",