powered by
fftab
These functions handle representation management for a fftab object:
can_repr(x, repr)get_repr(x)set_repr(x, repr)
get_repr(x)
set_repr(x, repr)
can_repr(): Logical value (TRUE or FALSE) indicating if the object supports the specified representations.
can_repr()
TRUE
FALSE
get_repr(): A character vector of current representations.
get_repr()
set_repr(): A modified fftab object with the specified representation(s).
set_repr()
A fftab object.
For can_repr(), a character vector specifying representations ("polr", "rect", "cplx").
"polr"
"rect"
"cplx"
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.
to_cplx(), has_cplx()
to_cplx()
has_cplx()
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