You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sh...@apache.org on 2016/09/01 04:28:57 UTC
spark git commit: [SPARKR][MINOR] Fix windowPartitionBy example
Repository: spark
Updated Branches:
refs/heads/master 2f9c27364 -> d008638fb
[SPARKR][MINOR] Fix windowPartitionBy example
## What changes were proposed in this pull request?
The usage in the original example is incorrect. This PR fixes it.
## How was this patch tested?
Manual test.
Author: Junyang Qian <ju...@databricks.com>
Closes #14903 from junyangq/SPARKR-FixWindowPartitionByDoc.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d008638f
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d008638f
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d008638f
Branch: refs/heads/master
Commit: d008638fbedc857c1adc1dff399d427b8bae848e
Parents: 2f9c273
Author: Junyang Qian <ju...@databricks.com>
Authored: Wed Aug 31 21:28:53 2016 -0700
Committer: Shivaram Venkataraman <sh...@cs.berkeley.edu>
Committed: Wed Aug 31 21:28:53 2016 -0700
----------------------------------------------------------------------
R/pkg/R/window.R | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/d008638f/R/pkg/R/window.R
----------------------------------------------------------------------
diff --git a/R/pkg/R/window.R b/R/pkg/R/window.R
index 215d0e7..0799d84 100644
--- a/R/pkg/R/window.R
+++ b/R/pkg/R/window.R
@@ -21,9 +21,9 @@
#'
#' Creates a WindowSpec with the partitioning defined.
#'
-#' @param col A column name or Column by which rows are partitioned to
+#' @param col A column name or Column by which rows are partitioned to
#' windows.
-#' @param ... Optional column names or Columns in addition to col, by
+#' @param ... Optional column names or Columns in addition to col, by
#' which rows are partitioned to windows.
#'
#' @rdname windowPartitionBy
@@ -32,10 +32,10 @@
#' @export
#' @examples
#' \dontrun{
-#' ws <- windowPartitionBy("key1", "key2")
+#' ws <- orderBy(windowPartitionBy("key1", "key2"), "key3")
#' df1 <- select(df, over(lead("value", 1), ws))
#'
-#' ws <- windowPartitionBy(df$key1, df$key2)
+#' ws <- orderBy(windowPartitionBy(df$key1, df$key2), df$key3)
#' df1 <- select(df, over(lead("value", 1), ws))
#' }
#' @note windowPartitionBy(character) since 2.0.0
@@ -70,9 +70,9 @@ setMethod("windowPartitionBy",
#'
#' Creates a WindowSpec with the ordering defined.
#'
-#' @param col A column name or Column by which rows are ordered within
+#' @param col A column name or Column by which rows are ordered within
#' windows.
-#' @param ... Optional column names or Columns in addition to col, by
+#' @param ... Optional column names or Columns in addition to col, by
#' which rows are ordered within windows.
#'
#' @rdname windowOrderBy
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org