Skip to content

Commit

Permalink
try remove braces
Browse files Browse the repository at this point in the history
  • Loading branch information
sorhawell committed Oct 14, 2023
1 parent f74524a commit 45eb766
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
15 changes: 8 additions & 7 deletions R/expr__expr.R
Original file line number Diff line number Diff line change
Expand Up @@ -3042,10 +3042,10 @@ Expr_rolling_sum = function(
#' @param center
#' Set the labels at the center of the window
#' @param by
#' If the `window_size` is temporal for instance `"5h"` or `"3s`, you must
#' If the `window_size` is temporal for instance `"5h"` or `"3s"`, you must
#' set the column that will be used to determine the windows. This column must
#' be of dtype `{Date, Datetime}`
#' @param closed : `{'left', 'right', 'both', 'none'}`
#' be of DataType: Date or DateTime.
#' @param closed string option `c("left", "right", "both", "none")`.
#' Define whether the temporal window interval is closed or not.
#'
#'
Expand All @@ -3066,13 +3066,14 @@ Expr_rolling_std = function(
min_periods = NULL,
center = FALSE, # :bool,
by = NULL, # : Nullable<String>,
closed = "left" # ;: Nullable<String>,
closed = c("left", "right", "both", "none")
) {
wargs = prepare_rolling_window_args(window_size, min_periods)
unwrap(.pr$Expr$rolling_std(
.pr$Expr$rolling_std(
self, wargs$window_size, weights,
wargs$min_periods, center, by, closed
))
wargs$min_periods, center, by, closed[1L]
) |>
unwrap("in $rolling_std(): ")
}

#' Rolling var
Expand Down
8 changes: 4 additions & 4 deletions man/Expr_rolling_std.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 45eb766

Please sign in to comment.