Learn R Programming

fftab (version 0.1.0)

can_repr: Manage Representations of a fftab Object

Description

These functions handle representation management for a fftab object:

Usage

can_repr(x, repr)

get_repr(x)

set_repr(x, repr)

Value

  • can_repr(): Logical value (TRUE or FALSE) indicating if the object supports the specified representations.

  • get_repr(): A character vector of current representations.

  • set_repr(): A modified fftab object with the specified representation(s).

Arguments

x

A fftab object.

repr

For can_repr(), a character vector specifying representations ("polr", "rect", "cplx").

Details

  • get_repr(): Retrieve current representations.

  • can_repr(): Check if the object supports specific representations.

  • set_repr(): Convert the object to one or more specified representations.

See Also

to_cplx(), has_cplx()

Examples

Run this code
fftab(c(1, 0, -1, 0)) |> can_repr("cplx")

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

fftab(c(1, 0, -1, 0)) |> set_repr(c("polr", "rect"))

Run the code above in your browser using DataLab