Learn R Programming

fftab (version 0.1.0)

has_cplx: Check Representations of a fftab Object

Description

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

Usage

has_cplx(x)

has_rect(x)

has_polr(x)

Value

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

Arguments

x

A fftab object.

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

to_cplx(), get_repr()

Examples

Run this code
fftab(c(1, 0, -1, 0)) |> has_cplx()

fftab(c(1, 0, -1, 0)) |> has_rect()

fftab(c(1, 0, -1, 0)) |> has_polr()

Run the code above in your browser using DataLab