Skip to content

Commit

Permalink
Move n,prop arguments after dots in chop_spikes().
Browse files Browse the repository at this point in the history
  • Loading branch information
hughjonesd committed Jun 10, 2024
1 parent db7e1a2 commit 4457b6e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions R/chop-isolates.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
chop_spikes <- function (
x,
breaks,
...,
n = NULL,
prop = NULL,
...
prop = NULL
) {
chop(x, brk_spikes(breaks, n = n, prop = prop), ...)
}
Expand Down
26 changes: 13 additions & 13 deletions R/tab.R
Original file line number Diff line number Diff line change
Expand Up @@ -192,27 +192,27 @@ tab_fn <- function (
#' @export
#' @order 3
tab_spikes <- function (
x,
breaks,
n = NULL,
prop = NULL,
...
) {
x,
breaks,
...,
n = NULL,
prop = NULL
) {
default_table(
chop_spikes(x = x, breaks = breaks, n = n, prop = prop, ...)
chop_spikes(x = x, breaks = breaks, ..., n = n, prop = prop)
)
}

#' @rdname dissect
#' @export
#' @order 2
tab_dissect <- function (
x,
breaks,
...,
n = NULL,
prop = NULL
) {
x,
breaks,
...,
n = NULL,
prop = NULL
) {
default_table(
dissect(x = x, breaks = breaks, ..., n = n, prop = prop)
)
Expand Down
8 changes: 4 additions & 4 deletions man/chop_spikes.Rd

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

0 comments on commit 4457b6e

Please sign in to comment.