Learn R Programming

fftab (version 0.1.0)

add_cplx: Add Additional Representations to Fourier Coefficients

Description

These functions add additional representations to a fftab object without removing or modifying existing representations.

Usage

add_cplx(x)

add_rect(x)

add_polr(x)

Value

A fftab object with the additional representation included.

Arguments

x

A fftab object containing Fourier coefficients and associated metadata.

Details

  • add_cplx(): Adds a complex ("cplx") representation to the Fourier coefficients.

  • add_rect(): Adds a rectangular ("rect") representation to the Fourier coefficients.

  • add_polr(): Adds a polar ("polr") representation to the Fourier coefficients.

These functions are useful for working with multiple representations simultaneously without overwriting existing data.

See Also

  • fftab()

Examples

Run this code
matrix(1:9, 3) |>
  fftab() |>
  print(n = 3) |>
  add_polr() |>
  print(n = 3) |>
  add_rect() |>
  print(n = 3) |>
  add_cplx() |>
  print(n = 3)

Run the code above in your browser using DataLab