srowen commented on a change in pull request #23946: [SPARK-26860][PySpark] Fix 
for RangeBetween docs appear to be wrong
URL: https://github.com/apache/spark/pull/23946#discussion_r262129588
 
 

 ##########
 File path: R/pkg/R/WindowSpec.R
 ##########
 @@ -139,7 +152,14 @@ setMethod("orderBy",
 #' @family windowspec_method
 #' @examples
 #' \dontrun{
-#'   rowsBetween(ws, 0, 3)
+#'   id <- c(rep(1, 3), rep(2, 3), 3)
+#'   desc <- c('New', 'New', 'Good', 'New', 'Good', 'Good', 'New')
+#'   df <- data.frame(id, desc)
+#'   df <- createDataFrame(df)
+#'   w1 <- orderBy(windowPartitionBy('desc'), df$id)
+#'   w2 <- rowsBetween(w1,0,3)
+#'   df1 <- withColumn(df, “sum”, over(sum(df$id), w2))
 
 Review comment:
   I think those need to be straight quotes?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to