Skip to content

Commit

Permalink
use u() in all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lschneiderbauer committed Jan 5, 2025
1 parent c1e3c1e commit f825a23
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
19 changes: 10 additions & 9 deletions R/fcwtr_scalogram.R
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ print.fcwtr_scalogram <- function(x, ...) {
#' @examples
#' fcwt(
#' sin((1:5000) * 2 * pi * 440 / 44100),
#' x_sample_freq = 44100,
#' x_sample_freq = u(44100, "Hz"),
#' n_freqs = 10
#' ) |>
#' as.data.frame() |>
Expand Down Expand Up @@ -366,7 +366,7 @@ as_tibble.fcwtr_scalogram <- function(x, ...) {
#'
#' fcwt(
#' sin((1:5000) * 2 * pi * 440 / 44100),
#' x_sample_freq = 44100,
#' x_sample_freq = u(44100, "Hz"),
#' n_freqs = 10
#' ) |>
#' as.matrix()
Expand Down Expand Up @@ -408,7 +408,8 @@ as.matrix.fcwtr_scalogram <- function(x, ...) {
#' @examples
#' fcwt(
#' sin((1:5000) * 2 * pi * 440 / 44100),
#' x_sample_freq = 44100,
#' x_sample_freq = u(44100, "Hz"),
#' y_sample_freq = u(44100, "Hz"),
#' n_freqs = 10
#' )[1:1000, 2:7]
#'
Expand Down Expand Up @@ -449,9 +450,9 @@ as.matrix.fcwtr_scalogram <- function(x, ...) {
#' res <-
#' fcwt(
#' ts_sin_440,
#' x_sample_freq = 44100,
#' freq_begin = 50,
#' freq_end = 1000,
#' x_sample_freq = u(44100, "Hz"),
#' freq_begin = u(50, "Hz"),
#' freq_end = u(1000, "Hz"),
#' n_freqs = 10,
#' sigma = 5
#' )
Expand Down Expand Up @@ -493,9 +494,9 @@ plot.fcwtr_scalogram <- function(x, n = 1000, time_unit = "s", freq_unit = "Hz",
#' res <-
#' fcwt(
#' sin((1:4410) * 2 * pi * 440 / 44100),
#' x_sample_freq = 44100,
#' freq_begin = 50,
#' freq_end = 1000,
#' x_sample_freq = u(44100, "Hz"),
#' freq_begin = u(50, "Hz"),
#' freq_end = u(1000, "Hz"),
#' n_freqs = 10,
#' sigma = 5
#' )
Expand Down
2 changes: 1 addition & 1 deletion man/as.data.frame.fcwtr_scalogram.Rd

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

2 changes: 1 addition & 1 deletion man/as.matrix.fcwtr_scalogram.Rd

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

6 changes: 3 additions & 3 deletions man/autoplot.fcwtr_scalogram.Rd

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

6 changes: 3 additions & 3 deletions man/plot.fcwtr_scalogram.Rd

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

3 changes: 2 additions & 1 deletion man/sub-.fcwtr_scalogram.Rd

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

0 comments on commit f825a23

Please sign in to comment.