Skip to contents

These functions check if specific representations are present in a fftab object:

Usage

has_cplx(x)

has_rect(x)

has_polr(x)

Arguments

x

A fftab object.

Value

Logical value (TRUE or FALSE) indicating whether the specified representation exists.

Details

  • has_cplx(): Checks if the object has complex representation (fx column).

  • has_rect(): Checks if the object has rectangular representation (re, im columns).

  • has_polr(): Checks if the object has polar representation (mod, arg columns).

See also

Examples

fftab(c(1, 0, -1, 0)) |> has_cplx()
#> [1] TRUE

fftab(c(1, 0, -1, 0)) |> has_rect()
#> [1] FALSE

fftab(c(1, 0, -1, 0)) |> has_polr()
#> [1] FALSE