Skip to content

Commit

Permalink
add example to as.data.frame()
Browse files Browse the repository at this point in the history
  • Loading branch information
lschneiderbauer committed Jun 15, 2024
1 parent 207cf08 commit 033947b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/fcwtr_scalogram.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@ rm_na_time_slices <- function(x) {
#' }
#'
#' @inheritParams base::as.data.frame
#' @examples
#' fcwt(
#' sin((1:5000) * 2 * pi * 440 / 44100),
#' sample_freq = 44100,
#' n_freqs = 10
#' ) |>
#' as.data.frame() |>
#' head()
#'
#' @export
as.data.frame.fcwtr_scalogram <- function(x, ...) {
df <- as.data.frame(as.table(x), stringsAsFactors = FALSE)
Expand Down
10 changes: 10 additions & 0 deletions man/as.data.frame.fcwtr_scalogram.Rd

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

0 comments on commit 033947b

Please sign in to comment.